[Mlir-commits] [mlir] [MLIR][LLVM] Share LLVM metadata attribute translation (PR #203016)

Andy Kaylor llvmlistbot at llvm.org
Wed Jun 10 09:18:34 PDT 2026


================
@@ -146,3 +146,16 @@ llvm.func @read_named_register() -> i32 {
       : (!llvm.metadata) -> i32
   llvm.return %r : i32
 }
+
+// -----
+
+llvm.mlir.global internal @metadata_global(0 : i32) : i32
----------------
andykaylor wrote:

I don't think this is a legal argument for `llvm.read_register`. I suppose it works fine as a test, but we'd never hit this case with this intrinsic. If we ever added a proper verifier for the intrinsic, this test would fail.

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


More information about the Mlir-commits mailing list