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:
Jakob Stoklund Olesen
2017-10-19 17:39:23 -07:00
parent 921bcc6c25
commit b3fb41087e
23 changed files with 225 additions and 255 deletions

View File

@@ -129,7 +129,7 @@ impl<'a> LocationVerifier<'a> {
let varargs = self.func.dfg.inst_variable_args(inst);
let results = self.func.dfg.inst_results(inst);
for (abi, &value) in sig.argument_types.iter().zip(varargs) {
for (abi, &value) in sig.params.iter().zip(varargs) {
self.check_abi_location(
inst,
value,
@@ -139,7 +139,7 @@ impl<'a> LocationVerifier<'a> {
)?;
}
for (abi, &value) in sig.return_types.iter().zip(results) {
for (abi, &value) in sig.returns.iter().zip(results) {
self.check_abi_location(
inst,
value,
@@ -157,7 +157,7 @@ impl<'a> LocationVerifier<'a> {
let sig = &self.func.signature;
let varargs = self.func.dfg.inst_variable_args(inst);
for (abi, &value) in sig.return_types.iter().zip(varargs) {
for (abi, &value) in sig.returns.iter().zip(varargs) {
self.check_abi_location(
inst,
value,
@@ -175,7 +175,7 @@ impl<'a> LocationVerifier<'a> {
&self,
inst: ir::Inst,
value: ir::Value,
abi: &ir::ArgumentType,
abi: &ir::AbiParam,
loc: ir::ValueLoc,
want_kind: ir::StackSlotKind,
) -> Result {