Implement Debug for ArgAction and Affinity.
This commit is contained in:
@@ -11,7 +11,7 @@ use std::cmp::Ordering;
|
|||||||
///
|
///
|
||||||
/// An argument may go through a sequence of legalization steps before it reaches the final
|
/// An argument may go through a sequence of legalization steps before it reaches the final
|
||||||
/// `Assign` action.
|
/// `Assign` action.
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum ArgAction {
|
pub enum ArgAction {
|
||||||
/// Assign the argument to the given location.
|
/// Assign the argument to the given location.
|
||||||
Assign(ArgumentLoc),
|
Assign(ArgumentLoc),
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ use ir::{AbiParam, ArgumentLoc};
|
|||||||
use isa::{TargetIsa, RegInfo, RegClassIndex, OperandConstraint, ConstraintKind};
|
use isa::{TargetIsa, RegInfo, RegClassIndex, OperandConstraint, ConstraintKind};
|
||||||
|
|
||||||
/// Preferred register allocation for an SSA value.
|
/// Preferred register allocation for an SSA value.
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
pub enum Affinity {
|
pub enum Affinity {
|
||||||
/// No affinity.
|
/// No affinity.
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user