[Mlir-commits] [mlir] [MLIR][LLVM] Add vararg support in LLVM::LLVMFuncOp (PR #67274)

Ivan R. Ivanov llvmlistbot at llvm.org
Tue Sep 26 07:37:29 PDT 2023


================
@@ -1262,6 +1325,18 @@ static ParseResult parseCallTypeAndResolveOperands(
   if (funcType.getNumResults() != 0)
     result.addTypes(funcType.getResults());
 
+  if (!isVarArg) {
----------------
ivanradanov wrote:

It is required if the callee is vararg, however, it can still be present for a non-vararg call, and we do not need (or want) to print it if the callee is non-vararg as the type is the same as the mlir op type printed after the `:`.

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


More information about the Mlir-commits mailing list