Struct cretonne_codegen::isa::registers::RegBank [] [src]

pub struct RegBank {
    pub name: &'static str,
    pub first_unit: RegUnit,
    pub units: RegUnit,
    pub names: &'static [&'static str],
    pub prefix: &'static str,
    pub first_toprc: usize,
    pub num_toprcs: usize,
    pub pressure_tracking: bool,
}

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

The name of this register bank as defined in the ISA's registers.py file.

The first register unit in this bank.

The total number of register units in this bank.

Array of specially named register units. This array can be shorter than the number of units in the bank.

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, ...

Index of the first top-level register class in this bank.

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.

Is register pressure tracking enabled for this bank?

Trait Implementations

Auto Trait Implementations

impl Send for RegBank

impl Sync for RegBank