Go to the documentation of this file.
25 #ifndef LLVM_IR_LEGACYPASSNAMEPARSER_H
26 #define LLVM_IR_LEGACYPASSNAMEPARSER_H
62 return P->getPassArgument().empty() ||
P->getNormalCtor() ==
nullptr ||
71 errs() <<
"Two passes with the same argument (-"
72 <<
P->getPassArgument() <<
") attempted to be registered!\n";
89 static int ValCompare(
const PassNameParser::OptionInfo *VT1,
90 const PassNameParser::OptionInfo *VT2) {
91 return VT1->Name.compare(VT2->Name);
void array_pod_sort(IteratorTy Start, IteratorTy End)
array_pod_sort - This sorts an array with the specified start and end extent.
This is an optimization pass for GlobalISel generic memory operations.
unsigned getNumOptions() const override
This currently compiles esp xmm0 movsd esp eax eax esp ret We should use not the dag combiner This is because dagcombine2 needs to be able to see through the X86ISD::Wrapper which DAGCombine can t really do The code for turning x load into a single vector load is target independent and should be moved to the dag combiner The code for turning x load into a vector load can only handle a direct load from a global or a direct load from the stack It should be generalized to handle any load from P
void passRegistered(const PassInfo *P) override
Callback functions - These functions are invoked whenever a pass is loaded or removed from the curren...
virtual bool ignorablePassImpl(const PassInfo *P) const
PassInfo class - An instance of this class exists for every pass known by the system,...
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
void passEnumerate(const PassInfo *P) override
passEnumerate - Callback function invoked when someone calls enumeratePasses on this PassRegistration...
virtual void printOptionInfo(const Option &O, size_t GlobalWidth) const
unsigned findOption(StringRef Name)
void enumeratePasses()
enumeratePasses - Iterate over the registered passes, calling the passEnumerate callback on each Pass...
void printOptionInfo(const cl::Option &O, size_t GlobalWidth) const override
PassNameParser(cl::Option &O)
PassRegistrationListener class - This class is meant to be derived from by clients that are intereste...
void addLiteralOption(StringRef Name, const DT &V, StringRef HelpStr)
Add an entry to the mapping table.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
SmallVector< OptionInfo, 8 > Values
~PassNameParser() override
bool ignorablePass(const PassInfo *P) const