[Mlir-commits] [mlir] [MLIR][Doc] Remove LLVM dialect typed pointer documentation (PR #71246)
Markus Böck
llvmlistbot at llvm.org
Sat Nov 4 01:58:20 PDT 2023
================
@@ -1174,12 +1174,12 @@ def LLVM_GlobalOp : LLVM_Op<"mlir.global",
llvm.mlir.global constant @no_trailing_type("foo bar")
// A complex initializer is constructed with an initializer region.
- llvm.mlir.global constant @int_gep() : !llvm.ptr<i32> {
- %0 = llvm.mlir.addressof @g2 : !llvm.ptr<i32>
+ llvm.mlir.global constant @int_gep() : !llvm.ptr {
+ %0 = llvm.mlir.addressof @g2 : !llvm.ptr
%1 = llvm.mlir.constant(2 : i32) : i32
%2 = llvm.getelementptr %0[%1]
- : (!llvm.ptr<i32>, i32) -> !llvm.ptr<i32>
- llvm.return %2 : !llvm.ptr<i32>
+ : (!llvm.ptr, i32) -> !llvm.ptr, i32
+ llvm.return %2 : !llvm.ptri32>
----------------
zero9178 wrote:
```suggestion
llvm.return %2 : !llvm.ptr
```
https://github.com/llvm/llvm-project/pull/71246
More information about the Mlir-commits
mailing list