[Mlir-commits] [mlir] [mlir][llvm] Add builder for llvm.call_intrinsic op (PR #151967)

Tobias Gysi llvmlistbot at llvm.org
Mon Aug 4 07:35:53 PDT 2025


================
@@ -2432,6 +2432,7 @@ def LLVM_CallIntrinsicOp
     OpBuilder<(ins "StringAttr":$intrin, "ValueRange":$args)>,
     OpBuilder<(ins "StringAttr":$intrin, "ValueRange":$args, "FastmathFlagsAttr":$fastMathFlags)>,
     OpBuilder<(ins "Type": $resultType, "StringAttr":$intrin, "ValueRange":$args)>,
+    OpBuilder<(ins "TypeRange": $resultTypes, "StringAttr":$intrin, "ValueRange":$args)>,
----------------
gysit wrote:

Yes the TypeRange can contain one or zero entries since LLVM dialect operations are limited to zero or one result value. If you want to return multiple values, you can return a struct that contains more than one value (IRC there should be some upstream examples).

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


More information about the Mlir-commits mailing list