[clang] [llvm] [clang] Support the Swift calling convention on 32-bit PowerPC (PR #205457)

Alsey Coleman Miller via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 24 13:56:22 PDT 2026


================
@@ -433,6 +433,17 @@ class LLVM_LIBRARY_VISIBILITY PPC32TargetInfo : public PPCTargetInfo {
   std::pair<unsigned, unsigned> hardwareInterferenceSizes() const override {
     return std::make_pair(32, 32);
   }
+
+  CallingConvCheckResult checkCallingConvention(CallingConv CC) const override {
+    switch (CC) {
+    case CC_Swift:
+      return CCCR_OK;
+    case CC_SwiftAsync:
+      return CCCR_Error;
----------------
colemancda wrote:

Granted, I made these changes in 2022, but from my recollection I just made the minimum changes so this compiled. 

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


More information about the cfe-commits mailing list