================
@@ -658,20 +682,30 @@ static llvm::abi::RequiredArgs requiredArgs(cir::FuncType
fnTy) {
return llvm::abi::RequiredArgs(fnTy.getNumInputs());
}
-/// Classify an x86_64 SysV signature (return type + argument types) using the
-/// LLVM ABI library. Shared by the cir.func path, the variadic-call path and
-/// the indirect-call path (the latter classifies from the callee function
+/// Map a CIR calling convention to the llvm::CallingConv the ABI classifier
+/// uses. Conventions the classifier does not distinguish fall back to C.
+static llvm::CallingConv::ID convertCallingConv(cir::CallingConv cc) {
----------------
skc7 wrote:
Added a FIXME here.
https://github.com/llvm/llvm-project/pull/220197
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits