17 #ifndef LLVM_TARGET_TARGETRECIP_H
18 #define LLVM_TARGET_TARGETRECIP_H
58 int8_t RefinementSteps;
60 RecipParams() :
Enabled(Uninitialized), RefinementSteps(Uninitialized) {}
63 std::map<StringRef, RecipParams> RecipMap;
64 typedef std::map<StringRef, RecipParams>::iterator RecipIter;
65 typedef std::map<StringRef, RecipParams>::const_iterator ConstRecipIter;
67 bool parseGlobalParams(
const std::string &Arg);
68 void parseIndividualParams(
const std::vector<std::string> &Args);
static cl::opt< bool > Enabled("stats", cl::desc("Enable statistics output from program (available with Asserts)"))
-stats - Command line option to cause transformations to emit stats about what they did...
bool operator==(const TargetRecip &Other) const
bool isEnabled(const StringRef &Key) const
Return true if the reciprocal operation has been enabled by default or from the command-line.
StringRef - Represent a constant reference to a string, i.e.
unsigned getRefinementSteps(const StringRef &Key) const
Return the number of iterations necessary to refine the the result of a machine instruction for the g...
void setDefaults(const StringRef &Key, bool Enable, unsigned RefSteps)
Set whether a particular reciprocal operation is enabled and how many refinement steps are needed whe...