[][src]Struct cranelift_codegen_meta::isa::x86::recipes::RecipeGroup

pub(crate) struct RecipeGroup<'builder> {
    regs: &'builder IsaRegs,
    recipes: Vec<EncodingRecipe>,
    templates: Vec<Rc<Template<'builder>>>,
}

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.

Methods

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]

fn add_template_inferred(
    &mut self,
    recipe: EncodingRecipeBuilder,
    infer_function: &'static str
) -> Rc<Template<'builder>>
[src]

fn add_template(
    &mut self,
    template: Template<'builder>
) -> Rc<Template<'builder>>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.