Add (some) encodings for x86_push/pop instructions. Simple uses actually pass the legalizer now.

This commit is contained in:
Tyler McMullen
2017-11-22 19:18:51 -08:00
committed by Jakob Stoklund Olesen
parent cdf70ccb77
commit b8275f5713
4 changed files with 22 additions and 5 deletions

View File

@@ -82,6 +82,8 @@ fn legalize_entry_params(func: &mut Function, entry: Ebb) {
pos.func.dfg.attach_ebb_param(entry, arg);
match abi_type.purpose {
ArgumentPurpose::Normal => {}
ArgumentPurpose::FramePointer => {}
ArgumentPurpose::CalleeSaved => {}
ArgumentPurpose::StructReturn => {
assert!(!has_sret, "Multiple sret arguments found");
has_sret = true;