[][src]Struct gf::isa::Processor

pub struct Processor<'a> { /* fields omitted */ }

Implementation of an ISA with a known feature map.


impl<'a> Processor<'a>[src]

pub fn new(isa: &'a Sealed<Isa>, feature_map: FeatureMap) -> Self[src]

Create a processor.

pub fn isa(&self) -> &'a Sealed<Isa>[src]

Return the parent ISA.

pub fn feature_map(&self) -> &FeatureMap[src]

Return the feature map.

pub fn feature_value(&self, id: FeatureId) -> &BitVec[src]

Return feature value by ID.


  • Panics on invalid ID.

pub fn rule(&self, id: RuleId) -> Option<&Rule>[src]

Return a shared reference to a rule.

pub fn enumerate_rules(&self) -> impl Iterator<Item = (RuleId, &Rule)>[src]

Return an iterator over rules and their IDs.

pub fn insn_rule(&self) -> &Rule[src]

Return the combined instruction encoding rule, with cases that can never succeed because of failed feature checks removed.

Trait Implementations

impl<'a> Clone for Processor<'a>[src]

Auto Trait Implementations

impl<'a> Send for Processor<'a>

impl<'a> Sync for Processor<'a>

impl<'a> Unpin for Processor<'a>

impl<'a> UnwindSafe for Processor<'a>

impl<'a> RefUnwindSafe for Processor<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized