llvm::FastMathFlags

Convenience struct for specifying and reasoning about fast-math flags.

Synopsis

Declared in <llvm/IR/FMF.h>

class FastMathFlags;

Enums

NameDescription
Unnamed enum Flag bits.

Member Functions

NameDescription
FastMathFlags [constructor]Constructors
all Return true if every fast-math flag is set.
allowContract Return true if floating-point contraction (e.g. into FMA) is allowed.
allowReassoc Return true if this set allows reassociation of floating-point operations.
allowReciprocal Return true if reciprocal estimates of division are allowed.
any Return true if any fast-math flag is set.
approxFunc Return true if approximate function implementations are allowed.
clear Clear every fast-math flag.
isFast Return true if every fast-math flag is set.
noInfs Return true if this set allows ignoring infinite results.
noNaNs Return true if this set assumes arguments and results are not NaN.
noSignedZeros Return true if this set allows ignoring the sign of zero.
none Return true if no fast-math flags are set.
operator&= Intersect this object's flags with OtherFlags (bitwise AND).
operator|= Union this object's flags with OtherFlags (bitwise OR).
print Print fast-math flags to O.
set Set every fast-math flag.
setAllowContract Set or clear the AllowContract fast-math flag.
setAllowReassoc Flag setters Set or clear the AllowReassoc fast-math flag.
setAllowReciprocal Set or clear the AllowReciprocal fast-math flag.
setApproxFunc Set or clear the ApproxFunc fast-math flag.
setFast Set or clear all fast-math flags.
setNoInfs Set or clear the NoInfs fast-math flag.
setNoNaNs Set or clear the NoNaNs fast-math flag.
setNoSignedZeros Set or clear the NoSignedZeros fast-math flag.
operator== Return true if this flag set equals OtherFlags.
operator!= Return true if this flag set differs from OtherFlags.

Static Member Functions

NameDescription
getFast Return flags with every fast-math bit set.
intersectRewrite Intersect the rewrite-based flags of LHS and RHS.
unionValue Union the value-based flags of LHS and RHS.

Static Data Members

NameDescription
AllFlagsMask Mask of all valid fast-math flag bits.

Friends

NameDescription
llvm::FPMathOperatorFloating-point operator view that exposes FastMathFlags (defined in Operator.h).

Non-Member Functions

NameDescription
operator&Bitwise-AND two fast-math flag sets.
operator|Bitwise-OR two fast-math flag sets.