[Mlir-commits] [mlir] [MLIR] Add missing MLIRLLVMDialect dep to MLIRControlFlowToSCF (PR #113560)
Thomas Preud'homme
llvmlistbot at llvm.org
Thu Oct 24 06:01:15 PDT 2024
https://github.com/RoboTux created https://github.com/llvm/llvm-project/pull/113560
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
```
>From 16dd901a41bbc3c0a2a8f46e34ae260f37526ca0 Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <thomas.preudhomme at arm.com>
Date: Tue, 22 Oct 2024 22:40:04 +0100
Subject: [PATCH] [MLIR] Add missing MLIRLLVMDialect dep to
MLIRControlFlowToSCF
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
```
---
mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt b/mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt
index e2f1677b1d0695..9a3f2dfc3799fd 100644
--- a/mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt
+++ b/mlir/lib/Conversion/ControlFlowToSCF/CMakeLists.txt
@@ -12,6 +12,7 @@ add_mlir_conversion_library(MLIRControlFlowToSCF
MLIRArithDialect
MLIRControlFlowDialect
MLIRFuncDialect
+ MLIRLLVMDialect
MLIRSCFDialect
MLIRUBDialect
MLIRPass
More information about the Mlir-commits
mailing list