[−][src]Struct cranelift_codegen_meta::cdsl::instructions::InstructionPredicateRegistry
A registry of predicates to help deduplicating them, during Encodings construction. When the
construction process is over, it needs to be extracted with extract
and associated to the
TargetIsa.
Fields
map: PrimaryMap<InstructionPredicateNumber, InstructionPredicate>
Maps a predicate number to its actual predicate.
inverted_map: HashMap<InstructionPredicate, InstructionPredicateNumber>
Inverse map: maps a predicate to its predicate number. This is used before inserting a predicate, to check whether it already exists.
Methods
impl InstructionPredicateRegistry
[src]
pub fn new() -> Self
[src]
pub fn insert(
&mut self,
predicate: InstructionPredicate
) -> InstructionPredicateNumber
[src]
&mut self,
predicate: InstructionPredicate
) -> InstructionPredicateNumber
pub fn extract(
self
) -> PrimaryMap<InstructionPredicateNumber, InstructionPredicate>
[src]
self
) -> PrimaryMap<InstructionPredicateNumber, InstructionPredicate>
Auto Trait Implementations
impl RefUnwindSafe for InstructionPredicateRegistry
impl Send for InstructionPredicateRegistry
impl Sync for InstructionPredicateRegistry
impl Unpin for InstructionPredicateRegistry
impl UnwindSafe for InstructionPredicateRegistry
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,
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.
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>,