[clang] [CIR] Upstream func args alloca handling (PR #129167)

Andy Kaylor via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 09:59:57 PST 2025


================
@@ -234,6 +273,29 @@ cir::FuncOp CIRGenFunction::generateCode(clang::GlobalDecl gd, cir::FuncOp fn,
   return fn;
 }
 
+clang::QualType CIRGenFunction::buildFunctionArgList(clang::GlobalDecl gd,
+                                                     FunctionArgList &args) {
+  const auto *fd = cast<FunctionDecl>(gd.getDecl());
+  QualType retTy = fd->getReturnType();
+
+  const auto *md = dyn_cast<CXXMethodDecl>(fd);
+  if (md && md->isInstance())
+    cgm.errorNYI(fd->getSourceRange(), "buildFunctionArgList: CXXMethodDecl");
+
+  if (isa<CXXConstructorDecl>(fd))
----------------
andykaylor wrote:

Not in this function. That is, not in either `CodeGenFunction::BuildFunctionArgList` or the incubator implementation of this function.

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


More information about the cfe-commits mailing list