Skip to content

Commit b87ff11

Browse files
lambdageekradekdoulik
authored andcommitted
[mono] Add mono calling convention to AArch64RegisterInfo::isArgumentRegister (#579)
This is a new case switch added in upstream 6e00a34
1 parent 54b2194 commit b87ff11

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,13 @@ bool AArch64RegisterInfo::isArgumentRegister(const MachineFunction &MF,
687687
if (STI.isTargetWindows())
688688
return HasReg(CC_AArch64_Win64PCS_ArgRegs, Reg);
689689
return HasReg(CC_AArch64_AAPCS_ArgRegs, Reg);
690+
case CallingConv::Mono:
691+
if (STI.isTargetDarwin())
692+
return HasReg(CC_AArch64_Mono_DarwinPCS_ArgRegs, Reg);
693+
else if (STI.isTargetWindows())
694+
report_fatal_error("Unsupported calling convention.");
695+
else
696+
return HasReg(CC_AArch64_Mono_AAPCS_ArgRegs, Reg);
690697
}
691698
}
692699

0 commit comments

Comments
 (0)