Skip to content

Commit 825a29e

Browse files
MaheshRavishankarAlexisPerry
authored andcommitted
[mlir][GPU] Move GPUDeviceMappingAttr.td to GPU/IR. (llvm#95880)
This seems to be in the wrong place with `GPU/TransformOps`
1 parent cde11ed commit 825a29e

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

mlir/include/mlir/Dialect/GPU/IR/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ mlir_tablegen(CompilationAttrInterfaces.h.inc -gen-attr-interface-decls)
2121
mlir_tablegen(CompilationAttrInterfaces.cpp.inc -gen-attr-interface-defs)
2222
add_public_tablegen_target(MLIRGPUCompilationAttrInterfacesIncGen)
2323

24+
set(LLVM_TARGET_DEFINITIONS GPUDeviceMappingAttr.td)
25+
mlir_tablegen(GPUDeviceMapperEnums.h.inc -gen-enum-decls)
26+
mlir_tablegen(GPUDeviceMapperEnums.cpp.inc -gen-enum-defs)
27+
add_public_tablegen_target(MLIRGPUDeviceMapperEnumsGen)
28+
2429
set(LLVM_TARGET_DEFINITIONS GPUOps.td)
2530
mlir_tablegen(GPUOpsAttributes.h.inc -gen-attrdef-decls -attrdefs-dialect=gpu)
2631
mlir_tablegen(GPUOpsAttributes.cpp.inc -gen-attrdef-defs -attrdefs-dialect=gpu)

mlir/include/mlir/Dialect/GPU/IR/GPUOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ include "mlir/Dialect/DLTI/DLTIBase.td"
1717
include "mlir/Dialect/GPU/IR/GPUBase.td"
1818
include "mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td"
1919
include "mlir/Dialect/GPU/IR/CompilationAttrs.td"
20+
include "mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td"
2021
include "mlir/Dialect/GPU/IR/ParallelLoopMapperAttr.td"
21-
include "mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td"
2222
include "mlir/IR/CommonTypeConstraints.td"
2323
include "mlir/IR/EnumAttr.td"
2424
include "mlir/IR/SymbolInterfaces.td"

mlir/include/mlir/Dialect/GPU/TransformOps/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ mlir_tablegen(GPUTransformOps.cpp.inc -gen-op-defs)
44
add_public_tablegen_target(MLIRGPUTransformOpsIncGen)
55

66
add_mlir_doc(GPUTransformOps GPUTransformOps Dialects/ -gen-op-doc)
7-
8-
set(LLVM_TARGET_DEFINITIONS GPUDeviceMappingAttr.td)
9-
mlir_tablegen(GPUDeviceMapperEnums.h.inc -gen-enum-decls)
10-
mlir_tablegen(GPUDeviceMapperEnums.cpp.inc -gen-enum-defs)
11-
add_public_tablegen_target(MLIRGPUDeviceMapperEnumsGen)

utils/bazel/llvm-project-overlay/mlir/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5421,9 +5421,9 @@ td_library(
54215421
"include/mlir/Dialect/GPU/IR/CompilationAttrInterfaces.td",
54225422
"include/mlir/Dialect/GPU/IR/CompilationAttrs.td",
54235423
"include/mlir/Dialect/GPU/IR/GPUBase.td",
5424+
"include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td",
54245425
"include/mlir/Dialect/GPU/IR/GPUOps.td",
54255426
"include/mlir/Dialect/GPU/IR/ParallelLoopMapperAttr.td",
5426-
"include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td",
54275427
],
54285428
includes = ["include"],
54295429
deps = [
@@ -5451,7 +5451,7 @@ gentbl_cc_library(
54515451
),
54525452
],
54535453
tblgen = ":mlir-tblgen",
5454-
td_file = "include/mlir/Dialect/GPU/TransformOps/GPUDeviceMappingAttr.td",
5454+
td_file = "include/mlir/Dialect/GPU/IR/GPUDeviceMappingAttr.td",
54555455
deps = [
54565456
":GPUOpsTdFiles",
54575457
":OpBaseTdFiles",

0 commit comments

Comments
 (0)