[Mlir-commits] [mlir] [mlir][DataLayout] Add `IsolatedFromAvobe` to the `DataLayoutOpInterface` op. (PR #132742)
Fabian Mora
llvmlistbot at llvm.org
Mon Mar 24 07:27:52 PDT 2025
https://github.com/fabianmcg created https://github.com/llvm/llvm-project/pull/132742
None
>From 1c486bc86cfb9eda440901c684d6d472a4502791 Mon Sep 17 00:00:00 2001
From: fabian <6982088+fabianmcg at users.noreply.github.com>
Date: Mon, 24 Mar 2025 07:22:20 -0700
Subject: [PATCH] [mlir][DataLayout] Add IsolatedFromAvobe to the
`DataLayoutOpInterface` op.
---
mlir/include/mlir/Dialect/GPU/IR/GPUOps.td | 2 +-
mlir/include/mlir/Interfaces/DataLayoutInterfaces.td | 2 +-
mlir/test/lib/Dialect/Test/TestOps.td | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
index 2b1ce573effd0..3241aff4b683c 100644
--- a/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
+++ b/mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
@@ -1388,7 +1388,7 @@ def GPU_BarrierOp : GPU_Op<"barrier"> {
}
def GPU_GPUModuleOp : GPU_Op<"module", [
- DataLayoutOpInterface, HasDefaultDLTIDataLayout, IsolatedFromAbove,
+ IsolatedFromAbove, DataLayoutOpInterface, HasDefaultDLTIDataLayout,
NoRegionArguments, SymbolTable, Symbol] # GraphRegionNoTerminator.traits> {
let summary = "A top level compilation unit containing code to be run on a GPU.";
let description = [{
diff --git a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.td b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
index 818b441b9a770..fc701b20cb007 100644
--- a/mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
+++ b/mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
@@ -565,7 +565,7 @@ def DataLayoutOpInterface : OpInterface<"DataLayoutOpInterface"> {
}]
>
];
-
+ let dependentTraits = [IsolatedFromAbove];
let verify = [{ return ::mlir::detail::verifyDataLayoutOp($_op); }];
}
diff --git a/mlir/test/lib/Dialect/Test/TestOps.td b/mlir/test/lib/Dialect/Test/TestOps.td
index 94c722038f1cc..f653e4465cfef 100644
--- a/mlir/test/lib/Dialect/Test/TestOps.td
+++ b/mlir/test/lib/Dialect/Test/TestOps.td
@@ -2555,7 +2555,7 @@ def MakeTupleOp: TEST_Op<"make_tuple"> {
//===----------------------------------------------------------------------===//
def OpWithDataLayoutOp : TEST_Op<"op_with_data_layout",
- [HasDefaultDLTIDataLayout, DataLayoutOpInterface]> {
+ [IsolatedFromAbove, HasDefaultDLTIDataLayout, DataLayoutOpInterface]> {
let summary =
"An op that uses DataLayout implementation from the Target dialect";
let regions = (region VariadicRegion<AnyRegion>:$regions);
More information about the Mlir-commits
mailing list