[Mlir-commits] [mlir] [MLIR][XeGPU][TransformOps] Add get_desc_op (PR #166801)
Rolf Morel
llvmlistbot at llvm.org
Fri Nov 7 06:36:01 PST 2025
================
@@ -16,6 +16,23 @@ include "mlir/Dialect/Transform/IR/TransformTypes.td"
include "mlir/Interfaces/SideEffectInterfaces.td"
include "mlir/IR/OpBase.td"
+def GetDescOp : Op<Transform_Dialect, "xegpu.get_desc_op", [
+ DeclareOpInterfaceMethods<TransformOpInterface>,
+ NavigationTransformOpTrait, MemoryEffectsOpInterface
+]> {
+
+ let summary = "Get a handle to the descriptor op of a value.";
+ let description = [{
+ Traces the producers of the given value until an `xegpu.create_nd_tdesc`
+ descriptor op is found. Returns a handle to it.
+ }];
+
+ let arguments = (ins TransformValueHandleTypeInterface : $target);
----------------
rolfmorel wrote:
Nit: I believe MLIR "house style" is to have no spaces around the `:`. SetDescLayoutOp below does both with and without.
I would say just check a couple of .td files and do whatever they do (... assuming that it's consistent).
https://github.com/llvm/llvm-project/pull/166801
More information about the Mlir-commits
mailing list