[Mlir-commits] [mlir] [mlir][llvm] Fixes CallOp builder for the case of indirect call (PR #76240)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Dec 25 22:55:03 PST 2023


================
@@ -908,8 +908,9 @@ void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
 
 void CallOp::build(OpBuilder &builder, OperationState &state, TypeRange results,
                    FlatSymbolRefAttr callee, ValueRange args) {
+  auto fargs = callee ? args : args.drop_front();
----------------
gitoleg wrote:

well, the next problem will arise here: once the `callee_type` is not set,  the function type will be inferred from  the operands, and again, with a pointer to the function itself at the first place.

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


More information about the Mlir-commits mailing list