Fix build by making LoopOps depend on StandardOps
authorAlex Zinenko <zinenko@google.com>
Tue, 16 Jul 2019 13:27:11 +0000 (06:27 -0700)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 16 Jul 2019 20:45:22 +0000 (13:45 -0700)
LoopOps needs the definition ConstantIndexOp in the verifier of loop::ForOp.

PiperOrigin-RevId: 258355329

mlir/lib/Dialect/LoopOps/CMakeLists.txt

index 0756ea8..ce4a666 100644 (file)
@@ -5,5 +5,5 @@ add_llvm_library(MLIRLoopOps
   ADDITIONAL_HEADER_DIRS
   ${MLIR_MAIN_INCLUDE_DIR}/mlir/LoopOps
   )
-add_dependencies(MLIRLoopOps MLIRLoopOpsIncGen LLVMSupport)
+add_dependencies(MLIRLoopOps MLIRLoopOpsIncGen MLIRStandardOps LLVMSupport)
 target_link_libraries(MLIRLoopOps LLVMSupport)