pub struct ShrSOperation<'c> { /* private fields */ }
Expand description
A shrs
operation. Signed index shift right.
The index.shrs
operation shifts an index value to the right by a variable
amount. The LHS operand is treated as signed. The high order bits are filled
with copies of the most significant bit. If the RHS operand is equal to or
greater than the index bitwidth, the operation is undefined.
Example:
// c = a >> b
%c = index.shrs %a, %b
Implementations§
source§impl<'c> ShrSOperation<'c>
impl<'c> ShrSOperation<'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>
) -> ShrSOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ShrSOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<ShrSOperation<'c>> for Operation<'c>
impl<'c> From<ShrSOperation<'c>> for Operation<'c>
source§fn from(operation: ShrSOperation<'c>) -> Self
fn from(operation: ShrSOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ShrSOperation<'c>
impl<'c> !Send for ShrSOperation<'c>
impl<'c> !Sync for ShrSOperation<'c>
impl<'c> Unpin for ShrSOperation<'c>
impl<'c> UnwindSafe for ShrSOperation<'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