[Mlir-commits] [mlir] [MLIR][LLVM] Add vararg support in LLVM::CallOp (PR #67274)
Christian Ulmann
llvmlistbot at llvm.org
Wed Sep 27 08:35:12 PDT 2023
================
@@ -1378,6 +1379,13 @@ ParseResult CallOp::parse(OpAsmParser &parser, OperationState &result) {
return parseCallTypeAndResolveOperands(parser, result, isDirect, operands);
}
+LLVMFunctionType CallOp::getCalleeFunctionType() {
+ if (!getCalleeType())
+ setCalleeTypeAttr(TypeAttr::get(
----------------
Dinistro wrote:
I wouldn't update this attribute. In fact, it might make sense to only allow it when the function is indeed variadic, as one otherwise can have conflicting state.
https://github.com/llvm/llvm-project/pull/67274
More information about the Mlir-commits
mailing list