[Mlir-commits] [mlir] [MLIR][LLVMIR] Add support for intrinsics with metadata arguments (PR #200308)
Tobias Gysi
llvmlistbot at llvm.org
Fri May 29 00:42:53 PDT 2026
================
@@ -2502,6 +2502,68 @@ def LLVM_InlineAsmOp : LLVM_Op<"inline_asm", [DeclareOpInterfaceMethods<MemoryEf
let hasVerifier = 1;
}
+//===--------------------------------------------------------------------===//
+// MetadataAsValueOp
+//===--------------------------------------------------------------------===//
+
+def LLVM_MetadataAsValueOp : LLVM_Op<"mlir.metadata_as_value", [Pure]> {
----------------
gysit wrote:
I wonder if we could make the operation `ConstantLike` and add it to https://github.com/llvm/llvm-project/blob/4c1bc59365360f7f24a5c82b8cebd2b52634879a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp#L4687 so that metadata attribute are materialized as such metadata as value operations. That way the metadata node would all be moved to the entry block.
https://github.com/llvm/llvm-project/pull/200308
More information about the Mlir-commits
mailing list