[Mlir-commits] [mlir] [MLIR] Add missing MLIRLLVMDialect dep to MLIRMathToLibm (PR #113563)
Thomas Preud'homme
llvmlistbot at llvm.org
Thu Oct 24 06:02:27 PDT 2024
https://github.com/RoboTux created https://github.com/llvm/llvm-project/pull/113563
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRMathToLibm.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/MathToLibm/MathToLibm.cpp:13
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```
>From 25477853d9f47757aad2eb9e183095102948bffd 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 MLIRMathToLibm
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRMathToLibm.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/MathToLibm/MathToLibm.cpp:13
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```
---
mlir/lib/Conversion/MathToLibm/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/mlir/lib/Conversion/MathToLibm/CMakeLists.txt b/mlir/lib/Conversion/MathToLibm/CMakeLists.txt
index 61c46e9bfe250e..0a4eb97474f3ab 100644
--- a/mlir/lib/Conversion/MathToLibm/CMakeLists.txt
+++ b/mlir/lib/Conversion/MathToLibm/CMakeLists.txt
@@ -14,6 +14,7 @@ add_mlir_conversion_library(MLIRMathToLibm
MLIRArithDialect
MLIRDialectUtils
MLIRFuncDialect
+ MLIRLLVMDialect
MLIRMathDialect
MLIRPass
MLIRTransformUtils
More information about the Mlir-commits
mailing list