pub struct SizeOfOperation<'c> { /* private fields */ }
Expand description
A sizeof
operation. Size in bits of the index type.
The index.sizeof
operation produces an index-typed SSA value equal to the
size in bits of the index
type. For example, on 32-bit systems, the result
is 32 : index
, and on 64-bit systems, the result is 64 : index
.
Example:
%0 = index.sizeof
Implementations§
source§impl<'c> SizeOfOperation<'c>
impl<'c> SizeOfOperation<'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>
) -> SizeOfOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> SizeOfOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<SizeOfOperation<'c>> for Operation<'c>
impl<'c> From<SizeOfOperation<'c>> for Operation<'c>
source§fn from(operation: SizeOfOperation<'c>) -> Self
fn from(operation: SizeOfOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for SizeOfOperation<'c>
impl<'c> !Send for SizeOfOperation<'c>
impl<'c> !Sync for SizeOfOperation<'c>
impl<'c> Unpin for SizeOfOperation<'c>
impl<'c> UnwindSafe for SizeOfOperation<'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