pub struct UndefOperation<'c> { /* private fields */ }
Expand description
A mlir.undef
operation. Creates an undefined value of LLVM dialect type..
Unlike LLVM IR, MLIR does not have first-class undefined values. Such values
must be created as SSA values using llvm.mlir.undef
. This operation has no
operands or attributes. It creates an undefined value of the specified LLVM
IR dialect type.
Example:
// Create a structure with a 32-bit integer followed by a float.
%0 = llvm.mlir.undef : !llvm.struct<(i32, f32)>
Implementations§
source§impl<'c> UndefOperation<'c>
impl<'c> UndefOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> UndefOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> UndefOperationBuilder<'c, Unset>
Creates a builder.
pub fn res(&self) -> Result<OperationResult<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<UndefOperation<'c>> for Operation<'c>
impl<'c> From<UndefOperation<'c>> for Operation<'c>
source§fn from(operation: UndefOperation<'c>) -> Self
fn from(operation: UndefOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for UndefOperation<'c>
impl<'c> !Send for UndefOperation<'c>
impl<'c> !Sync for UndefOperation<'c>
impl<'c> Unpin for UndefOperation<'c>
impl<'c> UnwindSafe for UndefOperation<'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