aboutsummaryrefslogtreecommitdiff
path: root/mlir
diff options
context:
space:
mode:
authorxiaoleis-nv <99947620+xiaoleis-nv@users.noreply.github.com>2023-12-08 16:28:12 +0800
committerGitHub <noreply@github.com>2023-12-08 00:28:12 -0800
commitc340cf0a353cd6d1090297cf84caf2720d1c7d90 (patch)
tree313bb3230ea09932c940660d7e594a66f527db09 /mlir
parent76ee3447699c032237517a64a8eeead5e94faf7e (diff)
downloadllvm-c340cf0a353cd6d1090297cf84caf2720d1c7d90.zip
llvm-c340cf0a353cd6d1090297cf84caf2720d1c7d90.tar.gz
llvm-c340cf0a353cd6d1090297cf84caf2720d1c7d90.tar.bz2
Fix argument name of GEPOp builder (#74810)
This MR fix the argument name of GEPOp builder from `basePtrType` to `elementType` to avoid confusion. Co-authored-by: Xiaolei Shi <xiaoleis@nvidia.com>
Diffstat (limited to 'mlir')
-rw-r--r--mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
index 88d9cd2..d7690b8 100644
--- a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
+++ b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
@@ -284,10 +284,10 @@ def LLVM_GEPOp : LLVM_Op<"getelementptr", [Pure,
}];
let builders = [
- OpBuilder<(ins "Type":$resultType, "Type":$basePtrType, "Value":$basePtr,
+ OpBuilder<(ins "Type":$resultType, "Type":$elementType, "Value":$basePtr,
"ValueRange":$indices, CArg<"bool", "false">:$inbounds,
CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
- OpBuilder<(ins "Type":$resultType, "Type":$basePtrType, "Value":$basePtr,
+ OpBuilder<(ins "Type":$resultType, "Type":$elementType, "Value":$basePtr,
"ArrayRef<GEPArg>":$indices, CArg<"bool", "false">:$inbounds,
CArg<"ArrayRef<NamedAttribute>", "{}">:$attributes)>,
];