pub struct MaxFOperation<'c> { /* private fields */ }
Expand description
A maxf
operation. Floating-point maximum operation.
Syntax:
operation ::= ssa-id `=` `arith.maxf` ssa-use `,` ssa-use `:` type
Returns the maximum of the two arguments, treating -0.0 as less than +0.0. If one of the arguments is NaN, then the result is also NaN.
Example:
// Scalar floating-point maximum.
%a = arith.maxf %b, %c : f64
Implementations§
source§impl<'c> MaxFOperation<'c>
impl<'c> MaxFOperation<'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>
) -> MaxFOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MaxFOperationBuilder<'c, 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>
pub fn fastmath(&self) -> Result<Attribute<'c>, Error>
pub fn set_fastmath(&mut self, value: Attribute<'c>)
pub fn remove_fastmath(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<MaxFOperation<'c>> for Operation<'c>
impl<'c> From<MaxFOperation<'c>> for Operation<'c>
source§fn from(operation: MaxFOperation<'c>) -> Self
fn from(operation: MaxFOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MaxFOperation<'c>
impl<'c> !Send for MaxFOperation<'c>
impl<'c> !Sync for MaxFOperation<'c>
impl<'c> Unpin for MaxFOperation<'c>
impl<'c> UnwindSafe for MaxFOperation<'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