[MLIR][cmake] use add_mlir_interface() wherever possible

Differential Revision: https://reviews.llvm.org/D81715
This commit is contained in:
Stephen Neuendorffer 2020-06-11 22:54:05 -07:00
parent 1eddce4177
commit 8dcf89c3a7
2 changed files with 3 additions and 12 deletions

View File

@ -1,11 +1,2 @@
set(LLVM_TARGET_DEFINITIONS OpAsmInterface.td)
mlir_tablegen(OpAsmInterface.h.inc -gen-op-interface-decls)
mlir_tablegen(OpAsmInterface.cpp.inc -gen-op-interface-defs)
add_public_tablegen_target(MLIROpAsmInterfacesIncGen)
add_dependencies(mlir-generic-headers MLIROpAsmInterfacesIncGen)
set(LLVM_TARGET_DEFINITIONS SymbolInterfaces.td)
mlir_tablegen(SymbolInterfaces.h.inc -gen-op-interface-decls)
mlir_tablegen(SymbolInterfaces.cpp.inc -gen-op-interface-defs)
add_public_tablegen_target(MLIRSymbolInterfacesIncGen)
add_dependencies(mlir-generic-headers MLIRSymbolInterfacesIncGen)
add_mlir_interface(OpAsmInterface)
add_mlir_interface(SymbolInterfaces)

View File

@ -31,7 +31,7 @@ add_mlir_library(MLIRIR
DEPENDS
MLIRCallInterfacesIncGen
MLIROpAsmInterfacesIncGen
MLIROpAsmInterfaceIncGen
MLIRSymbolInterfacesIncGen
LINK_LIBS PUBLIC