[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:54 PDT 2026


================
@@ -1980,10 +2016,29 @@ LogicalResult ModuleImport::convertIntrinsicArguments(
     value = nullptr;
   }
 
+  // Convert a single intrinsic operand into an MLIR value.
+  // `llvm::MetadataAsValue` operands (e.g. the rounding-mode / FP-exception
+  // MDString arguments used by the constrained floating-point intrinsics, or
+  // the named-register MDNode used by `llvm.read_register`) are lifted into a
----------------
gysit wrote:

This refers only on the intrinsics that are imported via the call intrinsic operation right? The existing constrained intrinsics still convert to an explicit rounding mode attribute rather to an md string attribute?

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


More information about the Mlir-commits mailing list