[−][src]Struct cranelift_codegen_meta::isa::x86::recipes::RecipeGroup
Helper data structure to create recipes and template recipes. It contains all the recipes and recipe templates that might be used in the encodings crate of this same directory.
Fields
regs: &'builder IsaRegs
Memoized registers description, to pass it to builders later.
recipes: Vec<EncodingRecipe>
All the recipes explicitly created in this file. This is different from the final set of recipes, which is definitive only once encodings have generated new recipes on the fly.
templates: Vec<Rc<Template<'builder>>>
All the recipe templates created in this file.
Implementations
impl<'builder> RecipeGroup<'builder>
[src]
fn new(regs: &'builder IsaRegs) -> Self
[src]
fn add_recipe(&mut self, recipe: EncodingRecipeBuilder)
[src]
fn add_template_recipe(
&mut self,
recipe: EncodingRecipeBuilder
) -> Rc<Template<'builder>>
[src]
&mut self,
recipe: EncodingRecipeBuilder
) -> Rc<Template<'builder>>
fn add_template_inferred(
&mut self,
recipe: EncodingRecipeBuilder,
infer_function: &'static str
) -> Rc<Template<'builder>>
[src]
&mut self,
recipe: EncodingRecipeBuilder,
infer_function: &'static str
) -> Rc<Template<'builder>>
fn add_template(
&mut self,
template: Template<'builder>
) -> Rc<Template<'builder>>
[src]
&mut self,
template: Template<'builder>
) -> Rc<Template<'builder>>
pub fn recipe(&self, name: &str) -> &EncodingRecipe
[src]
pub fn template(&self, name: &str) -> &Template
[src]
Auto Trait Implementations
impl<'builder> !RefUnwindSafe for RecipeGroup<'builder>
impl<'builder> !Send for RecipeGroup<'builder>
impl<'builder> !Sync for RecipeGroup<'builder>
impl<'builder> Unpin for RecipeGroup<'builder>
impl<'builder> !UnwindSafe for RecipeGroup<'builder>
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>,