Skip to content

Commit

Permalink
[MLIR] Add missing MLIRLLVMDialect dep to MLIRControlFlowToSCF
Browse files Browse the repository at this point in the history
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRControlFlowToSCF.a only:
```
In file included from llvm/include/llvm/IR/Module.h:22,
                 from mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:37,
                 from mlir/lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp:19
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```
  • Loading branch information
RoboTux committed Oct 24, 2024
1 parent dd76d9b commit 16dd901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ add_mlir_conversion_library(MLIRControlFlowToSCF
MLIRArithDialect
MLIRControlFlowDialect
MLIRFuncDialect
MLIRLLVMDialect
MLIRSCFDialect
MLIRUBDialect
MLIRPass
Expand Down

0 comments on commit 16dd901

Please sign in to comment.