[llvm] Add ":MathDialect" as a dep of "GPUDialect". Fixes bazel build. (PR #147376)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 7 11:56:47 PDT 2025
https://github.com/DeanSturtevant1 created https://github.com/llvm/llvm-project/pull/147376
Error was:
external/llvm-project/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp:17:10: fatal error: 'mlir/Dialect/Math/IR/Math.h' file not found
17 | #include "mlir/Dialect/Math/IR/Math.h"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
>From 33369b399e09d6640f984e0d9de40118cae07005 Mon Sep 17 00:00:00 2001
From: Dean Sturtevant <dsturtevant at google.com>
Date: Mon, 7 Jul 2025 14:53:44 -0400
Subject: [PATCH] Add ":MathDialect" as a dep of "GPUDialect". Fixes bazel
build.
---
utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 1 +
1 file changed, 1 insertion(+)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 7f59236a3bb27..93bbe736c59c2 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -5321,6 +5321,7 @@ cc_library(
":InferIntRangeInterface",
":InferTypeOpInterface",
":InliningUtils",
+ ":MathDialect",
":MemRefDialect",
":SCFDialect",
":SideEffectInterfaces",
More information about the llvm-commits
mailing list