[Mlir-commits] [mlir] c340cf0 - Fix argument name of GEPOp builder (#74810)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Dec 8 00:28:17 PST 2023


Author: xiaoleis-nv
Date: 2023-12-08T00:28:12-08:00
New Revision: c340cf0a353cd6d1090297cf84caf2720d1c7d90

URL: https://github.com/llvm/llvm-project/commit/c340cf0a353cd6d1090297cf84caf2720d1c7d90
DIFF: https://github.com/llvm/llvm-project/commit/c340cf0a353cd6d1090297cf84caf2720d1c7d90.diff

LOG: 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 at nvidia.com>

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td b/mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
index 88d9cd2c71c0c..d7690b84807f6 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)>,
   ];


        


More information about the Mlir-commits mailing list