Struct melior::ir::operation::OperationBuilder
source · pub struct OperationBuilder<'c> { /* private fields */ }
Expand description
An operation builder.
Implementations§
source§impl<'c> OperationBuilder<'c>
impl<'c> OperationBuilder<'c>
sourcepub fn add_results(self, results: &[Type<'c>]) -> Self
pub fn add_results(self, results: &[Type<'c>]) -> Self
Adds results.
sourcepub fn add_operands(self, operands: &[Value<'c, '_>]) -> Self
pub fn add_operands(self, operands: &[Value<'c, '_>]) -> Self
Adds operands.
sourcepub fn add_regions<const N: usize>(self, regions: [Region<'c>; N]) -> Self
pub fn add_regions<const N: usize>(self, regions: [Region<'c>; N]) -> Self
Adds regions.
sourcepub fn add_regions_vec(self, regions: Vec<Region<'c>>) -> Self
pub fn add_regions_vec(self, regions: Vec<Region<'c>>) -> Self
Adds regions in a Vec
.
sourcepub fn add_successors(self, successors: &[&Block<'c>]) -> Self
pub fn add_successors(self, successors: &[&Block<'c>]) -> Self
Adds successor blocks.
sourcepub fn add_attributes(
self,
attributes: &[(Identifier<'c>, Attribute<'c>)]
) -> Self
pub fn add_attributes( self, attributes: &[(Identifier<'c>, Attribute<'c>)] ) -> Self
Adds attributes.
sourcepub fn enable_result_type_inference(self) -> Self
pub fn enable_result_type_inference(self) -> Self
Enables result type inference.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for OperationBuilder<'c>
impl<'c> !Send for OperationBuilder<'c>
impl<'c> !Sync for OperationBuilder<'c>
impl<'c> Unpin for OperationBuilder<'c>
impl<'c> UnwindSafe for OperationBuilder<'c>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more