[Mlir-commits] [mlir] [MLIR][LLVM] Remove typed pointers from the LLVM dialect (PR #71285)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Mon Nov 6 00:56:35 PST 2023


================
@@ -19,10 +19,8 @@ include "mlir/Dialect/LLVMIR/LLVMOpBase.td"
 include "mlir/Interfaces/SideEffectInterfaces.td"
 include "mlir/Dialect/LLVMIR/BasicPtxBuilderInterface.td"
 
-def LLVM_i8Ptr_global : LLVM_IntPtrBase<8, 1>;
-def LLVM_i8Ptr_shared : LLVM_IntPtrBase<8, 3>;
-def LLVM_i64ptr_any : LLVM_IntPtrBase<64>;
-def LLVM_i64ptr_shared : LLVM_IntPtrBase<64, 3>;
+def LLVM_ptr_global : LLVM_PointerInAddressSpace<1>;
+def LLVM_ptr_shared : LLVM_PointerInAddressSpace<3>;
----------------
ftynse wrote:

Since this are touched already, any chance of using the name style consistent with the rest of the codebase, i.e., `LLVM_PointerGlobal`? Even better if it's `LLVM_PointerNVVMGlobal` so there's no confusion.

https://github.com/llvm/llvm-project/pull/71285


More information about the Mlir-commits mailing list