[Mlir-commits] [llvm] [mlir] [mlir][GPU] Move `GPUDeviceMappingAttr.td` to `GPU/IR`. (PR #95880)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Jun 17 21:51:19 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir-gpu
@llvm/pr-subscribers-mlir
Author: None (MaheshRavishankar)
<details>
<summary>Changes</summary>
This seems to be in the wrong place with `GPU/TransformOps`
---
Full diff: https://github.com/llvm/llvm-project/pull/95880.diff
5 Files Affected:
- (modified) mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt (+5)
- (renamed) mlir/include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td ()
- (modified) mlir/include/mlir/Dialect/GPU/IR/GPUOps.td (+1-1)
- (modified) mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt (-5)
- (modified) utils/bazel/llvm-project-overlay/mlir/BUILD.bazel (+2-2)
``````````diff
diff --git a/mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt b/mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt
index a16ae29740049..3c95b4f8fb0d1 100644
--- a/mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt
@@ -21,6 +21,11 @@ mlir_tablegen(CompilationAttrInterfaces.h.inc -gen-attr-interface-decls)
mlir_tablegen(CompilationAttrInterfaces.cpp.inc -gen-attr-interface-defs)
add_public_tablegen_target(MLIRGPUCompilationAttrInterfacesIncGen)
+set(LLVM_TARGET_DEFINITIONS GPUDeviceMappingAttr.td)
+mlir_tablegen(GPUDeviceMapperEnums.h.inc -gen-enum-decls)
+mlir_tablegen(GPUDeviceMapperEnums.cpp.inc -gen-enum-defs)
+add_public_tablegen_target(MLIRGPUDeviceMapperEnumsGen)
+
set(LLVM_TARGET_DEFINITIONS GPUOps.td)
mlir_tablegen(GPUOpsAttributes.h.inc -gen-attrdef-decls -attrdefs-dialect=gpu)
mlir_tablegen(GPUOpsAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=gpu)
diff --git a/mlir/include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td b/mlir/include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td
similarity index 100%
rename from mlir/include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td
rename to mlir/include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td
diff --git a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
index 10719aae5c8b4..8b6ea45dbc3c8 100644
--- a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
+++ b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
@@ -17,8 +17,8 @@ include "mlir/Dialect/DLTI/DLTIBase.td"
include "mlir/Dialect/GPU/IR/GPUBase.td"
include "mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td"
include "mlir/Dialect/GPU/IR/CompilationAttrs.td"
+include "mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td"
include "mlir/Dialect/GPU/IR/ParallelLoopMapperAttr.td"
-include "mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td"
include "mlir/IR/CommonTypeConstraints.td"
include "mlir/IR/EnumAttr.td"
include "mlir/IR/SymbolInterfaces.td"
diff --git a/mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt b/mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt
index 0cbcc3f2653f1..c99f3dfa5683f 100644
--- a/mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt
+++ b/mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt
@@ -4,8 +4,3 @@ mlir_tablegen(GPUTransformOps.cpp.inc -gen-op-defs)
add_public_tablegen_target(MLIRGPUTransformOpsIncGen)
add_mlir_doc(GPUTransformOps GPUTransformOps Dialects/ -gen-op-doc)
-
-set(LLVM_TARGET_DEFINITIONS GPUDeviceMappingAttr.td)
-mlir_tablegen(GPUDeviceMapperEnums.h.inc -gen-enum-decls)
-mlir_tablegen(GPUDeviceMapperEnums.cpp.inc -gen-enum-defs)
-add_public_tablegen_target(MLIRGPUDeviceMapperEnumsGen)
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index 0fc791ef23bbd..1dd6ef9d3b8d0 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -5404,9 +5404,9 @@ td_library(
"include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td",
"include/mlir/Dialect/GPU/IR/CompilationAttrs.td",
"include/mlir/Dialect/GPU/IR/GPUBase.td",
+ "include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td",
"include/mlir/Dialect/GPU/IR/GPUOps.td",
"include/mlir/Dialect/GPU/IR/ParallelLoopMapperAttr.td",
- "include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td",
],
includes = ["include"],
deps = [
@@ -5434,7 +5434,7 @@ gentbl_cc_library(
),
],
tblgen = ":mlir-tblgen",
- td_file = "include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td",
+ td_file = "include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td",
deps = [
":GPUOpsTdFiles",
":OpBaseTdFiles",
``````````
</details>
https://github.com/llvm/llvm-project/pull/95880
More information about the Mlir-commits
mailing list