[Mlir-commits] [mlir] [MLIR][LLVM] Remove typed pointers from the LLVM dialect (PR #71285)
Markus Böck
llvmlistbot at llvm.org
Sat Nov 4 11:42:09 PDT 2023
================
@@ -117,11 +117,6 @@ llvm.mlir.global internal protected unnamed_addr @protected(42 : i32) : i32
// -----
-// expected-error @+1 {{expects type to be a valid element type for an LLVM pointer}}
-llvm.mlir.global internal constant @constant(37.0) : !llvm.label
----------------
zero9178 wrote:
In that case you can probably use `TypeAttrOf` in `GlobalOp` instead of the plain `TypeAttr` to restrict the type that can be allocated
https://github.com/llvm/llvm-project/pull/71285
More information about the Mlir-commits
mailing list