Add a regs_overlap function to the isa module.

Test it with the arm32 register banks which have the most interesting
properties. Most other registers have a single register unit.
This commit is contained in:
Jakob Stoklund Olesen
2017-05-08 12:20:35 -07:00
parent aecd90a1b9
commit aaa70a677d
3 changed files with 47 additions and 2 deletions

View File

@@ -42,7 +42,7 @@
pub use isa::constraints::{RecipeConstraints, OperandConstraint, ConstraintKind, BranchRange};
pub use isa::encoding::{Encoding, EncInfo};
pub use isa::registers::{RegInfo, RegUnit, RegClass, RegClassIndex};
pub use isa::registers::{RegInfo, RegUnit, RegClass, RegClassIndex, regs_overlap};
use binemit::CodeSink;
use settings;