[clang] [llvm] [clang] Integrate LLVMABI for function call ABI lowering (PR #194460)

Nikita Popov via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 28 03:49:24 PDT 2026


================
@@ -866,6 +905,11 @@ const CGFunctionInfo &CodeGenTypes::arrangeLLVMFunctionInfo(
   assert(inserted && "Recursively being processed?");
 
   // Compute ABI information.
+  bool UseLLVMABI =
+      CGM.shouldUseLLVMABILowering() && info.getCC() != CC_Swift &&
+      info.getCC() != CC_SwiftAsync &&
+      !(info.getCC() == CC_DeviceKernel &&
+        (CC == llvm::CallingConv::SPIR_KERNEL || CC == llvm::CallingConv::C));
----------------
nikic wrote:

As it's in the `else` anyway, don't need to replicate all of these conditions?

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


More information about the cfe-commits mailing list