[Mlir-commits] [mlir] 5207632 - [mlir][GPU] Move `GPUDeviceMappingAttr.td` to `GPU/IR`. (#95880)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Jun 18 10:04:48 PDT 2024


Author: MaheshRavishankar
Date: 2024-06-18T10:04:45-07:00
New Revision: 5207632f8698a2fab0c4cdcdf2f7ad9aaf96e06f

URL: https://github.com/llvm/llvm-project/commit/5207632f8698a2fab0c4cdcdf2f7ad9aaf96e06f
DIFF: https://github.com/llvm/llvm-project/commit/5207632f8698a2fab0c4cdcdf2f7ad9aaf96e06f.diff

LOG: [mlir][GPU] Move `GPUDeviceMappingAttr.td` to `GPU/IR`. (#95880)

This seems to be in the wrong place with `GPU/TransformOps`

Added: 
    mlir/include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td

Modified: 
    mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt
    mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
    mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt
    utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Removed: 
    mlir/include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td


################################################################################
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 f47d4073ce842..c57d291552e60 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 9f9819b6eb858..0e7d9581fc3c9 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -5421,9 +5421,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 = [
@@ -5451,7 +5451,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",


        


More information about the Mlir-commits mailing list