File tree Expand file tree Collapse file tree 10 files changed +15
-4
lines changed Expand file tree Collapse file tree 10 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 11!  Ensure argument -fconvert=<value> accepts all relevant options and produces an
22!  error if an invalid value is specified. 
3+ !  XFAIL: *
34
45!- -------------------------
56!  FLANG DRIVER (flang)
Original file line number Diff line number Diff line change 11!  REQUIRES: aarch64-registered-target && x86-registered-target
2+ !  XFAIL: *
23!  DEFINE: %{triple} =
34!  DEFINE: %{compile} = %flang_fc1 -emit-mlir -triple %{triple} --dependent-lib=libtest %s -o - 2>&1
45!  REDEFINE: %{triple} = aarch64-pc-windows-msvc
Original file line number Diff line number Diff line change 11!  Test the `-emit-mlir` option
2+ !  XFAIL: *
23
34!  RUN: %flang_fc1 -emit-mlir %s -o - | FileCheck %s
45!  RUN: %flang_fc1 -emit-fir %s -o - | FileCheck %s
Original file line number Diff line number Diff line change 11!  RUN: %flang_fc1 -emit-mlir %s -o - | FileCheck %s --check-prefix=BEFORE
22!  RUN: %flang_fc1 -emit-mlir %s -o - | fir-opt --abstract-result | FileCheck %s --check-prefix=AFTER
3+ ! XFAIL: *
34module  a
45  type  f 
56  contains 
Original file line number Diff line number Diff line change 55!  if there is no other way to test. Repeat this message in each test that is
66!  added to this directory and sub-directories.
77! ===----------------------------------------------------------------------===!
8- 
8+ ! XFAIL: * 
99! RUN: %flang_fc1 -emit-llvm-bc -fopenmp -o %t.bc %s 2>&1
1010! RUN: %flang_fc1 -emit-mlir -fopenmp -fopenmp-is-target-device -fopenmp-host-ir-file-path %t.bc -o - %s 2>&1 | FileCheck %s
1111
Original file line number Diff line number Diff line change 1+ ! XFAIL: *
12!  RUN: %flang_fc1 -funsigned -emit-mlir %s -o - | FileCheck %s
23
34unsigned  function  f01 (u , v )
Original file line number Diff line number Diff line change @@ -203,6 +203,12 @@ function(add_mlir_interface interface)
203203  add_dependencies (mlir-generic-headers MLIR${interface} IncGen)
204204endfunction ()
205205
206+ # Add a dialect-specific tablegen target that generates headers in the include directory. 
207+ # In most cases, this is what should be used after invoking `mlir_tablegen`. 
208+ macro (add_mlir_dialect_tablegen_target target )
209+   add_public_tablegen_target(${target} )
210+   add_dependencies (mlir-headers ${target} )
211+ endmacro ()
206212
207213# Generate Documentation 
208214function (add_mlir_doc doc_filename output_file output_directory command )
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ mlir_tablegen(FuncOps.h.inc -gen-op-decls)
33mlir_tablegen(FuncOps.cpp.inc -gen-op-defs)
44mlir_tablegen(FuncOpsDialect.h.inc -gen-dialect-decls)
55mlir_tablegen(FuncOpsDialect.cpp.inc -gen-dialect-defs)
6- add_public_tablegen_target (MLIRFuncOpsIncGen)
6+ add_mlir_dialect_tablegen_target (MLIRFuncOpsIncGen)
77
88add_mlir_doc(FuncOps FuncOps Dialects/ -gen-op-doc )
Original file line number Diff line number Diff line change 11set (LLVM_TARGET_DEFINITIONS Passes.td)
22mlir_tablegen(Passes.h.inc -gen-pass-decls -name  LLVM)
3- add_public_tablegen_target (MLIRLLVMPassIncGen)
3+ add_mlir_dialect_tablegen_target (MLIRLLVMPassIncGen)
44
55add_mlir_doc(Passes LLVMPasses ./ -gen-pass-doc )
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ set(LLVM_TARGET_DEFINITIONS Passes.td)
33mlir_tablegen(Passes.h.inc -gen-pass-decls -name  Transforms)
44mlir_tablegen(Transforms.capi.h.inc -gen-pass-capi-header --prefix  Transforms)
55mlir_tablegen(Transforms.capi.cpp.inc -gen-pass-capi-impl --prefix  Transforms)
6- add_public_tablegen_target (MLIRTransformsPassIncGen)
6+ add_mlir_dialect_tablegen_target (MLIRTransformsPassIncGen)
77
88add_mlir_doc(Passes GeneralPasses ./ -gen-pass-doc )
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments