Adds the libcall_call_conv setting and use it for libcall calls expansion;

This commit is contained in:
Benjamin Bouvier
2019-08-05 12:23:39 +02:00
committed by Dan Gohman
parent c7b4b98cac
commit d8d3602257
5 changed files with 63 additions and 4 deletions

View File

@@ -94,6 +94,29 @@ pub fn define() -> SettingGroup {
// Settings specific to the `baldrdash` calling convention.
settings.add_enum(
"libcall_call_conv",
r#"
Defines the calling convention to use for LibCalls call expansion,
since it may be different from the ISA default calling convention.
The default value is to use the same calling convention as the ISA
default calling convention.
This list should be kept in sync with the list of calling
conventions available in isa/call_conv.rs.
"#,
vec![
"isa_default",
"fast",
"cold",
"system_v",
"windows_fastcall",
"baldrdash",
"probestack",
],
);
settings.add_num(
"baldrdash_prologue_words",
r#"