[−][src]Struct cranelift_codegen::isa::registers::RegInfo
Information about the registers in an ISA.
The RegUnit
data structure collects all relevant static information about the registers in an
ISA.
Fields
banks: &'static [RegBank]
All register banks, ordered by their first_unit
. The register banks are disjoint, but
there may be holes of unused register unit numbers between banks due to alignment.
classes: &'static [RegClass]
All register classes ordered topologically so a sub-class always follows its parent.
Methods
impl RegInfo
[src]
pub fn bank_containing_regunit(&self, regunit: RegUnit) -> Option<&RegBank>
[src]
Get the register bank holding regunit
.
pub fn parse_regunit(&self, name: &str) -> Option<RegUnit>
[src]
Try to parse a regunit name. The name is not expected to begin with %
.
pub fn display_regunit(&self, regunit: RegUnit) -> DisplayRegUnit
[src]
Make a temporary object that can display a register unit.
pub fn rc(&self, idx: RegClassIndex) -> RegClass
[src]
Get the register class corresponding to idx
.
pub fn toprc(&self, idx: RegClassIndex) -> RegClass
[src]
Get the top-level register class containing the idx
class.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> From for T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,