Skip to content

Commit 97c9c16

Browse files
authored
[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.
1 parent 2164a44 commit 97c9c16

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ mlir_tablegen(ArithOpsAttributes.cpp.inc -gen-attrdef-defs
77
-attrdefs-dialect=arith)
88
add_mlir_dialect(ArithOps arith)
99
add_mlir_doc(ArithOps ArithOps Dialects/ -gen-dialect-doc)
10-
11-
set(LLVM_TARGET_DEFINITIONS ArithOpsInterfaces.td)
12-
mlir_tablegen(ArithOpsInterfaces.h.inc -gen-op-interface-decls)
13-
mlir_tablegen(ArithOpsInterfaces.cpp.inc -gen-op-interface-defs)
14-
add_public_tablegen_target(MLIRArithOpsInterfacesIncGen)
10+
add_mlir_interface(ArithOpsInterfaces)

0 commit comments

Comments
 (0)