[Mlir-commits] [mlir] [MLIR] Add missing MLIRFuncDialect dep to MLIRAffineAnalysis (PR #84555)

Thomas Preud'homme llvmlistbot at llvm.org
Fri Mar 8 11:39:20 PST 2024


https://github.com/RoboTux created https://github.com/llvm/llvm-project/pull/84555

Note: lib/libMLIRAffineAnalysis.a does build successfully in Ninja
without this patch. The missing dependency was discovered when
converting the CMake build system to bob which put output for each
target in their own build directory. A missing dependency will thus fail
because even though the target dep might be built indirectly, the
path to the dep will not be added to the include path and files are not
found when building the target.


>From 4ea59ac6ec488e1ec1b6b49b3b2d45ff6d58d1e4 Mon Sep 17 00:00:00 2001
From: Thomas Preud'homme <thomas.preudhomme at arm.com>
Date: Fri, 8 Mar 2024 17:21:04 +0000
Subject: [PATCH] [MLIR] Add missing MLIRFuncDialect dep to MLIRAffineAnalysis

Note: lib/libMLIRAffineAnalysis.a does build successfully in Ninja
without this patch. The missing dependency was discovered when
converting the CMake build system to bob which put output for each
target in their own build directory. A missing dependency will thus fail
because even though the target dep might be built indirectly, the
path to the dep will not be added to the include path and files are not
found when building the target.
---
 mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt b/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
index 61e49b0da8b2d0..3210d88c260035 100644
--- a/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
+++ b/mlir/lib/Dialect/Affine/Analysis/CMakeLists.txt
@@ -14,6 +14,7 @@ add_mlir_dialect_library(MLIRAffineAnalysis
   MLIRCallInterfaces
   MLIRControlFlowInterfaces
   MLIRDialectUtils
+  MLIRFuncDialect
   MLIRInferTypeOpInterface
   MLIRSideEffectInterfaces
   MLIRPresburger



More information about the Mlir-commits mailing list