Use the term "Function parameter" instead of "argument".
Rename the ArgumentType type to AbiParam since it describes the ABI characteristics of a parameter or return value, not just the value type. In Signature, rename members argument_types and return_types to "params" and "returns". Again, they are not just types. Fix a couple lingering references to "EBB arguments".
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
//! larger register class instead.
|
||||
|
||||
use std::fmt;
|
||||
use ir::{ArgumentType, ArgumentLoc};
|
||||
use ir::{AbiParam, ArgumentLoc};
|
||||
use isa::{TargetIsa, RegInfo, RegClassIndex, OperandConstraint, ConstraintKind};
|
||||
|
||||
/// Preferred register allocation for an SSA value.
|
||||
@@ -48,7 +48,7 @@ impl Affinity {
|
||||
}
|
||||
|
||||
/// Create an affinity that matches an ABI argument for `isa`.
|
||||
pub fn abi(arg: &ArgumentType, isa: &TargetIsa) -> Affinity {
|
||||
pub fn abi(arg: &AbiParam, isa: &TargetIsa) -> Affinity {
|
||||
match arg.location {
|
||||
ArgumentLoc::Unassigned => Affinity::None,
|
||||
ArgumentLoc::Reg(_) => Affinity::Reg(isa.regclass_for_abi_type(arg.value_type).into()),
|
||||
|
||||
Reference in New Issue
Block a user