From c340cf0a353cd6d1090297cf84caf2720d1c7d90 Mon Sep 17 00:00:00 2001 From: xiaoleis-nv <99947620+xiaoleis-nv@users.noreply.github.com> Date: Fri, 8 Dec 2023 16:28:12 +0800 Subject: 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 --- mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir') 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", "{}">:$attributes)>, - OpBuilder<(ins "Type":$resultType, "Type":$basePtrType, "Value":$basePtr, + OpBuilder<(ins "Type":$resultType, "Type":$elementType, "Value":$basePtr, "ArrayRef":$indices, CArg<"bool", "false">:$inbounds, CArg<"ArrayRef", "{}">:$attributes)>, ]; -- cgit v1.1