[Mlir-commits] [mlir] 8dcf89c - [MLIR][cmake] use add_mlir_interface() wherever possible

Stephen Neuendorffer llvmlistbot at llvm.org
Fri Jun 12 09:35:23 PDT 2020


Author: Stephen Neuendorffer
Date: 2020-06-12T09:27:56-07:00
New Revision: 8dcf89c3a7ce1b250277606321546472387dc9fd

URL: https://github.com/llvm/llvm-project/commit/8dcf89c3a7ce1b250277606321546472387dc9fd
DIFF: https://github.com/llvm/llvm-project/commit/8dcf89c3a7ce1b250277606321546472387dc9fd.diff

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

Differential Revision: https://reviews.llvm.org/D81715

Added: 
    

Modified: 
    mlir/include/mlir/IR/CMakeLists.txt
    mlir/lib/IR/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/CMakeLists.txt b/mlir/include/mlir/IR/CMakeLists.txt
index 06c177aff3a8..734a7b085510 100644
--- a/mlir/include/mlir/IR/CMakeLists.txt
+++ b/mlir/include/mlir/IR/CMakeLists.txt
@@ -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)

diff  --git a/mlir/lib/IR/CMakeLists.txt b/mlir/lib/IR/CMakeLists.txt
index 5a238a6d058c..f0a2a5871fbe 100644
--- a/mlir/lib/IR/CMakeLists.txt
+++ b/mlir/lib/IR/CMakeLists.txt
@@ -31,7 +31,7 @@ add_mlir_library(MLIRIR
 
   DEPENDS
   MLIRCallInterfacesIncGen
-  MLIROpAsmInterfacesIncGen
+  MLIROpAsmInterfaceIncGen
   MLIRSymbolInterfacesIncGen
 
   LINK_LIBS PUBLIC


        


More information about the Mlir-commits mailing list