[Mlir-commits] [mlir] 97c9c16 - [mlir][arith] Add ArithOpsInterfaces to mlir-generic-headers (#70862)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 31 19:09:55 PDT 2023


Author: anemet
Date: 2023-10-31T19:09:51-07:00
New Revision: 97c9c1638afb2c50b006d42f3f9474055cc72d29

URL: https://github.com/llvm/llvm-project/commit/97c9c1638afb2c50b006d42f3f9474055cc72d29
DIFF: https://github.com/llvm/llvm-project/commit/97c9c1638afb2c50b006d42f3f9474055cc72d29.diff

LOG: [mlir][arith] Add ArithOpsInterfaces to mlir-generic-headers (#70862)

This is achieved by calling add_mlir_interface.

The issue manifests as ArithOpsInterfaces.h.inc not being available when
a pass includes something like MemRef.h which includes Arith.h.

Tested with check-mlir.

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Arith/IR/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Arith/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/Arith/IR/CMakeLists.txt
index 5cdde2edd50f1ea..a2f24bdd94444db 100644
--- a/mlir/include/mlir/Dialect/Arith/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/Arith/IR/CMakeLists.txt
@@ -7,8 +7,4 @@ mlir_tablegen(ArithOpsAttributes.cpp.inc -gen-attrdef-defs
               -attrdefs-dialect=arith)
 add_mlir_dialect(ArithOps arith)
 add_mlir_doc(ArithOps ArithOps Dialects/ -gen-dialect-doc)
-
-set(LLVM_TARGET_DEFINITIONS ArithOpsInterfaces.td)
-mlir_tablegen(ArithOpsInterfaces.h.inc -gen-op-interface-decls)
-mlir_tablegen(ArithOpsInterfaces.cpp.inc -gen-op-interface-defs)
-add_public_tablegen_target(MLIRArithOpsInterfacesIncGen)
+add_mlir_interface(ArithOpsInterfaces)


        


More information about the Mlir-commits mailing list