[Mlir-commits] [mlir] c78cb30 - [MLIR][ROCDL] Fix accessedOperands for Rocdl_RawPtrBufferLoadOp (#127983)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Feb 21 03:38:51 PST 2025
Author: Alexander Weinrauch
Date: 2025-02-21T11:38:47Z
New Revision: c78cb30283635cdc8abf0ccd11823e6530fb95e8
URL: https://github.com/llvm/llvm-project/commit/c78cb30283635cdc8abf0ccd11823e6530fb95e8
DIFF: https://github.com/llvm/llvm-project/commit/c78cb30283635cdc8abf0ccd11823e6530fb95e8.diff
LOG: [MLIR][ROCDL] Fix accessedOperands for Rocdl_RawPtrBufferLoadOp (#127983)
`getAccessedOperands` should return all accessed pointer operands. In
the case for BufferLoads this is the source buffer and not the result.
Added:
Modified:
mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
index 58bdbbbe039b5..673ea480ad3fa 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
@@ -470,7 +470,7 @@ def ROCDL_RawPtrBufferLoadOp :
let assemblyFormat = "operands attr-dict `:` type($res)";
let extraClassDefinition = [{
::llvm::SmallVector<::mlir::Value> $cppClass::getAccessedOperands() {
- return {getRes()};
+ return {getRsrc()};
}
}];
}
More information about the Mlir-commits
mailing list