class FastMathFlags
Declaration
class FastMathFlags { /* full declaration omitted */ };
Description
Convenience struct for specifying and reasoning about fast-math flags.
Declared at: llvm/include/llvm/IR/FMF.h:21
Member Variables
- private unsigned int Flags = 0
Method Overview
- public FastMathFlags()
- private FastMathFlags(unsigned int F)
- public bool all() const
- public bool allowContract() const
- public bool allowReassoc() const
- public bool allowReciprocal() const
- public bool any() const
- public bool approxFunc() const
- public void clear()
- public static llvm::FastMathFlags getFast()
- public bool isFast() const
- public bool noInfs() const
- public bool noNaNs() const
- public bool noSignedZeros() const
- public bool none() const
- public void print(llvm::raw_ostream & O) const
- public void set()
- public void setAllowContract(bool B = true)
- public void setAllowReassoc(bool B = true)
- public void setAllowReciprocal(bool B = true)
- public void setApproxFunc(bool B = true)
- public void setFast(bool B = true)
- public void setNoInfs(bool B = true)
- public void setNoNaNs(bool B = true)
- public void setNoSignedZeros(bool B = true)
Methods
¶FastMathFlags()
FastMathFlags()
Declared at: llvm/include/llvm/IR/FMF.h:50
¶FastMathFlags(unsigned int F)
FastMathFlags(unsigned int F)
Declared at: llvm/include/llvm/IR/FMF.h:27
Parameters
- unsigned int F
¶bool all() const
bool all() const
Declared at: llvm/include/llvm/IR/FMF.h:60
¶bool allowContract() const
bool allowContract() const
Declared at: llvm/include/llvm/IR/FMF.h:71
¶bool allowReassoc() const
bool allowReassoc() const
Description
Flag queries
Declared at: llvm/include/llvm/IR/FMF.h:66
¶bool allowReciprocal() const
bool allowReciprocal() const
Declared at: llvm/include/llvm/IR/FMF.h:70
¶bool any() const
bool any() const
Declared at: llvm/include/llvm/IR/FMF.h:58
¶bool approxFunc() const
bool approxFunc() const
Declared at: llvm/include/llvm/IR/FMF.h:72
¶void clear()
void clear()
Declared at: llvm/include/llvm/IR/FMF.h:62
¶static llvm::FastMathFlags getFast()
static llvm::FastMathFlags getFast()
Declared at: llvm/include/llvm/IR/FMF.h:52
¶bool isFast() const
bool isFast() const
Description
'Fast' means all bits are set.
Declared at: llvm/include/llvm/IR/FMF.h:74
¶bool noInfs() const
bool noInfs() const
Declared at: llvm/include/llvm/IR/FMF.h:68
¶bool noNaNs() const
bool noNaNs() const
Declared at: llvm/include/llvm/IR/FMF.h:67
¶bool noSignedZeros() const
bool noSignedZeros() const
Declared at: llvm/include/llvm/IR/FMF.h:69
¶bool none() const
bool none() const
Declared at: llvm/include/llvm/IR/FMF.h:59
¶void print(llvm::raw_ostream& O) const
void print(llvm::raw_ostream& O) const
Description
Print fast-math flags to \p O.
Declared at: llvm/include/llvm/IR/FMF.h:111
Parameters
¶void set()
void set()
Declared at: llvm/include/llvm/IR/FMF.h:63
¶void setAllowContract(bool B = true)
void setAllowContract(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:92
Parameters
- bool B = true
¶void setAllowReassoc(bool B = true)
void setAllowReassoc(bool B = true)
Description
Flag setters
Declared at: llvm/include/llvm/IR/FMF.h:77
Parameters
- bool B = true
¶void setAllowReciprocal(bool B = true)
void setAllowReciprocal(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:89
Parameters
- bool B = true
¶void setApproxFunc(bool B = true)
void setApproxFunc(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:95
Parameters
- bool B = true
¶void setFast(bool B = true)
void setFast(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:98
Parameters
- bool B = true
¶void setNoInfs(bool B = true)
void setNoInfs(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:83
Parameters
- bool B = true
¶void setNoNaNs(bool B = true)
void setNoNaNs(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:80
Parameters
- bool B = true
¶void setNoSignedZeros(bool B = true)
void setNoSignedZeros(bool B = true)
Declared at: llvm/include/llvm/IR/FMF.h:86
Parameters
- bool B = true