[−][src]Struct cranelift_codegen_meta::cdsl::xform::TransformGroupBuilder
Fields
name: &'static str
doc: &'static str
chain_with: Option<TransformGroupIndex>
isa_name: Option<&'static str>
custom_legalizes: HashMap<String, &'static str>
transforms: Vec<Transform>
Methods
impl TransformGroupBuilder
[src]
pub fn new(name: &'static str, doc: &'static str) -> Self
[src]
pub fn chain_with(self, next_id: TransformGroupIndex) -> Self
[src]
pub fn isa(self, isa_name: &'static str) -> Self
[src]
pub fn custom_legalize(
&mut self,
inst: &Rc<InstructionContent>,
func_name: &'static str
)
[src]
&mut self,
inst: &Rc<InstructionContent>,
func_name: &'static str
)
Add a custom legalization action for inst
.
The func_name
parameter is the fully qualified name of a Rust function which takes the
same arguments as the isa::Legalize
actions.
The custom function will be called to legalize inst
and any return value is ignored.
pub fn legalize(&mut self, src: DummyDef, dst: Vec<DummyDef>)
[src]
Add a legalization pattern to this group.
pub fn build_and_add_to(
self,
owner: &mut TransformGroups
) -> TransformGroupIndex
[src]
self,
owner: &mut TransformGroups
) -> TransformGroupIndex
Auto Trait Implementations
impl !RefUnwindSafe for TransformGroupBuilder
impl !Send for TransformGroupBuilder
impl !Sync for TransformGroupBuilder
impl Unpin for TransformGroupBuilder
impl !UnwindSafe for TransformGroupBuilder
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>,