[Mlir-commits] [mlir] [MLIR][XeGPU] Allow load/store/prefetch uses [memref+offset] instead of tdesc (PR #150576)
Jianhui Li
llvmlistbot at llvm.org
Tue Jul 29 09:53:06 PDT 2025
================
@@ -638,25 +638,44 @@ def XeGPU_PrefetchOp : XeGPU_Op<"prefetch", []> {
}];
- let arguments = (ins XeGPU_TensorDesc: $TensorDesc,
+ let arguments = (ins XeGPU_TensorDescOrMemRef: $source,
+ Optional<XeGPU_OffsetType>: $offsets,
OptionalAttr<XeGPU_CacheHintAttr>: $l1_hint,
OptionalAttr<XeGPU_CacheHintAttr>: $l2_hint,
OptionalAttr<XeGPU_CacheHintAttr>: $l3_hint);
let extraClassDeclaration = extraBaseClassDeclaration # [{
+ Type getSourceType() {
+ return getSource().getType();
+ }
+
+ Value getTensorDesc() {
+ return getSource();
+ }
+
xegpu::TensorDescType getTensorDescType() {
----------------
Jianhui-Li wrote:
The function name needs to keep the same to minimize the change.
https://github.com/llvm/llvm-project/pull/150576
More information about the Mlir-commits
mailing list