[clang] [clang] Add Swift support for MIPS (PR #205461)
Alsey Coleman Miller via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 26 06:00:17 PDT 2026
================
@@ -433,6 +433,17 @@ class LLVM_LIBRARY_VISIBILITY MipsTargetInfo : public TargetInfo {
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:
I was following the code for how PowerPC 64, enabled Swift. I've updated to follow how AVR enabled Swift ABI.
https://github.com/llvm/llvm-project/pull/205461
More information about the cfe-commits
mailing list