[Mlir-commits] [mlir] [mlir][llvmir] Added extra builders for CallInstrinsicOp (PR #111664)

Tobias Gysi llvmlistbot at llvm.org
Wed Oct 9 09:48:27 PDT 2024


================
@@ -3324,6 +3324,34 @@ LogicalResult CallIntrinsicOp::verify() {
   return success();
 }
 
+void CallIntrinsicOp::build(OpBuilder &builder, OperationState &state,
+                            mlir::StringAttr intrin, mlir::ValueRange args) {
+  build(builder, state, /*results=*/Type{}, intrin, args, FastmathFlagsAttr{},
+        /*op_bundle_operands=*/{});
+}
+
+void CallIntrinsicOp::build(OpBuilder &builder, OperationState &state,
+                            mlir::StringAttr intrin, mlir::ValueRange args,
+                            mlir::LLVM::FastmathFlagsAttr fastMathFlags) {
+  build(builder, state, /*results=*/Type{}, intrin, args, fastMathFlags,
----------------
gysit wrote:

```suggestion
  build(builder, state, /*results=*/TypeRange{}, intrin, args, fastMathFlags,
```

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


More information about the Mlir-commits mailing list