Struct cranelift_codegen::isa::registers::RegBank [−][src]
The register units in a target ISA are divided into disjoint register banks. Each bank covers a contiguous range of register units.
The RegBank
struct provides a static description of a register bank.
Fields
name: &'static str
The name of this register bank as defined in the ISA’s DSL definition.
first_unit: RegUnit
The first register unit in this bank.
units: RegUnit
The total number of register units in this bank.
names: &'static [&'static str]
Array of specially named register units. This array can be shorter than the number of units in the bank.
prefix: &'static str
Name prefix to use for those register units in the bank not covered by the names
array.
The remaining register units will be named this prefix followed by their decimal offset in
the bank. So with a prefix r
, registers will be named r8
, r9
, …
first_toprc: usize
Index of the first top-level register class in this bank.
num_toprcs: usize
Number of top-level register classes in this bank.
The top-level register classes in a bank are guaranteed to be numbered sequentially from
first_toprc
, and all top-level register classes across banks come before any sub-classes.
pressure_tracking: bool
Is register pressure tracking enabled for this bank?
Auto Trait Implementations
impl RefUnwindSafe for RegBank
impl Send for RegBank
impl Sync for RegBank
impl Unpin for RegBank
impl UnwindSafe for RegBank
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,