Skip to content

Commit c78cb30

Browse files
authored
[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.
1 parent fc2f31c commit c78cb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def ROCDL_RawPtrBufferLoadOp :
470470
let assemblyFormat = "operands attr-dict `:` type($res)";
471471
let extraClassDefinition = [{
472472
::llvm::SmallVector<::mlir::Value> $cppClass::getAccessedOperands() {
473-
return {getRes()};
473+
return {getRsrc()};
474474
}
475475
}];
476476
}

0 commit comments

Comments
 (0)