Enum RealPredicate

Source
pub enum RealPredicate {
Show 16 variants RealPredicateFalse = 0, RealOEQ = 1, RealOGT = 2, RealOGE = 3, RealOLT = 4, RealOLE = 5, RealONE = 6, RealORD = 7, RealUNO = 8, RealUEQ = 9, RealUGT = 10, RealUGE = 11, RealULT = 12, RealULE = 13, RealUNE = 14, RealPredicateTrue = 15,
}
Expand description

Represents the various floating-point comparison predicates in LLVM IR.

The RealPredicate enum defines the possible predicates that can be used for floating-point comparisons in LLVM IR. These predicates specify the conditions under which a floating-point comparison is considered true. The predicates include ordered and unordered comparisons, as well as equality and inequality checks.

Variants§

§

RealPredicateFalse = 0

Represents a predicate that always returns false. No comparison is true under this predicate.

§

RealOEQ = 1

Represents an ordered equality comparison (==). This predicate is true if the two floating-point numbers are equal and neither is NaN.

§

RealOGT = 2

Represents an ordered greater than comparison (>). This predicate is true if the first floating-point number is greater than the second and neither is NaN.

§

RealOGE = 3

Represents an ordered greater than or equal comparison (>=). This predicate is true if the first floating-point number is greater than or equal to the second and neither is NaN.

§

RealOLT = 4

Represents an ordered less than comparison (<). This predicate is true if the first floating-point number is less than the second and neither is NaN.

§

RealOLE = 5

Represents an ordered less than or equal comparison (<=). This predicate is true if the first floating-point number is less than or equal to the second and neither is NaN.

§

RealONE = 6

Represents an ordered inequality comparison (!=). This predicate is true if the two floating-point numbers are not equal and neither is NaN.

§

RealORD = 7

Represents an ordered comparison. This predicate is true if neither of the floating-point numbers is NaN.

§

RealUNO = 8

Represents an unordered comparison. This predicate is true if either of the floating-point numbers is NaN.

§

RealUEQ = 9

Represents an unordered equality comparison. This predicate is true if the two floating-point numbers are equal or either is NaN.

§

RealUGT = 10

Represents an unordered greater than comparison. This predicate is true if the first floating-point number is greater than the second or either is NaN.

§

RealUGE = 11

Represents an unordered greater than or equal comparison. This predicate is true if the first floating-point number is greater than or equal to the second or either is NaN.

§

RealULT = 12

Represents an unordered less than comparison. This predicate is true if the first floating-point number is less than the second or either is NaN.

§

RealULE = 13

Represents an unordered less than or equal comparison. This predicate is true if the first floating-point number is less than or equal to the second or either is NaN.

§

RealUNE = 14

Represents an unordered inequality comparison. This predicate is true if the two floating-point numbers are not equal or either is NaN.

§

RealPredicateTrue = 15

Represents a predicate that always returns true. All comparisons are true under this predicate.

Trait Implementations§

Source§

impl Clone for RealPredicate

Source§

fn clone(&self) -> RealPredicate

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RealPredicate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<LLVMRealPredicate> for RealPredicate

Source§

fn from(predicate: LLVMRealPredicate) -> Self

Converts to this type from the input type.
Source§

impl From<RealPredicate> for LLVMRealPredicate

Source§

fn from(predicate: RealPredicate) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for RealPredicate

Source§

fn eq(&self, other: &RealPredicate) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for RealPredicate

Source§

impl Eq for RealPredicate

Source§

impl StructuralPartialEq for RealPredicate

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.