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

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Mon Sep 25 02:20:53 PDT 2023


================
@@ -950,6 +950,16 @@ static void printStoreType(OpAsmPrinter &printer, Operation *op,
 // CallOp
 //===----------------------------------------------------------------------===//
 
+namespace {
+static TypeRange getCallOpResults(LLVMFunctionType calleeType) {
+  SmallVector<Type> results;
+  Type resultType = calleeType.getReturnType();
+  if (!llvm::isa<LLVM::LLVMVoidType>(resultType))
----------------
ftynse wrote:

Nit: it's not necessary to prefix `isa` and co in with `llvm::` in MLIR codebase, they are re-exported into the `mlir` namespace that is quasi-systematically listed as `using namespace mlir`.

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


More information about the Mlir-commits mailing list