Auto merge of #97512 - scottmcm:add-coldcc, r=nagisa,lcnr

Add support for emitting functions with `coldcc` to LLVM

The eventual goal is to try using this for things like the internal panicking stuff, to see whether it helps.
This commit is contained in:
bors 2022-06-07 08:12:45 +00:00
commit d8bd0a950d

View File

@ -23,6 +23,7 @@ fn clif_sig_from_fn_abi<'tcx>(
) -> Signature { ) -> Signature {
let call_conv = match fn_abi.conv { let call_conv = match fn_abi.conv {
Conv::Rust | Conv::C => default_call_conv, Conv::Rust | Conv::C => default_call_conv,
Conv::RustCold => CallConv::Cold,
Conv::X86_64SysV => CallConv::SystemV, Conv::X86_64SysV => CallConv::SystemV,
Conv::X86_64Win64 => CallConv::WindowsFastcall, Conv::X86_64Win64 => CallConv::WindowsFastcall,
Conv::ArmAapcs Conv::ArmAapcs