[Mlir-commits] [mlir] 8bf1583 - [mlir] Move LLVMPassIncGen to LLVMIR/Transforms/CMakeLists.txt

River Riddle llvmlistbot at llvm.org
Wed Apr 1 14:10:15 PDT 2020


Author: River Riddle
Date: 2020-04-01T14:10:05-07:00
New Revision: 8bf1583b71d7ecd857ddb8286e3ae59a2418747d

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

LOG: [mlir] Move LLVMPassIncGen to LLVMIR/Transforms/CMakeLists.txt

This fixes a build error with the make generator for a missing
sub-directory.

Added: 
    mlir/include/mlir/Dialect/LLVMIR/Transforms/CMakeLists.txt

Modified: 
    mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt b/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
index 9c778823f204..cc4fd1bafc72 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/LLVMIR/CMakeLists.txt
@@ -1,3 +1,5 @@
+add_subdirectory(Transforms)
+
 set(LLVM_TARGET_DEFINITIONS LLVMOps.td)
 mlir_tablegen(LLVMOps.h.inc -gen-op-decls)
 mlir_tablegen(LLVMOps.cpp.inc -gen-op-defs)
@@ -28,9 +30,3 @@ add_mlir_dialect(LLVMAVX512 llvm_avx512 LLVMAVX512)
 set(LLVM_TARGET_DEFINITIONS LLVMAVX512.td)
 mlir_tablegen(LLVMAVX512Conversions.inc -gen-llvmir-conversions)
 add_public_tablegen_target(MLIRLLVMAVX512ConversionsIncGen)
-
-set(LLVM_TARGET_DEFINITIONS Transforms/Passes.td)
-mlir_tablegen(Transforms/Passes.h.inc -gen-pass-decls)
-add_public_tablegen_target(MLIRLLVMPassIncGen)
-
-add_mlir_doc(Transforms/Passes -gen-pass-doc LLVMPasses ./)

diff  --git a/mlir/include/mlir/Dialect/LLVMIR/Transforms/CMakeLists.txt b/mlir/include/mlir/Dialect/LLVMIR/Transforms/CMakeLists.txt
new file mode 100644
index 000000000000..a2fd81c23e11
--- /dev/null
+++ b/mlir/include/mlir/Dialect/LLVMIR/Transforms/CMakeLists.txt
@@ -0,0 +1,5 @@
+set(LLVM_TARGET_DEFINITIONS Passes.td)
+mlir_tablegen(Passes.h.inc -gen-pass-decls)
+add_public_tablegen_target(MLIRLLVMPassIncGen)
+
+add_mlir_doc(Passes -gen-pass-doc LLVMPasses ./)


        


More information about the Mlir-commits mailing list