13 #ifndef LLVM_PASSINFO_H
14 #define LLVM_PASSINFO_H
34 typedef Pass* (*NormalCtor_t)();
40 const bool IsCFGOnlyPass;
41 const bool IsAnalysis;
42 const bool IsAnalysisGroup;
43 std::vector<const PassInfo *> ItfImpl;
51 bool isCFGOnly,
bool is_analysis)
52 : PassName(name), PassArgument(arg), PassID(pi), IsCFGOnlyPass(isCFGOnly),
53 IsAnalysis(is_analysis), IsAnalysisGroup(
false), NormalCtor(normal) {}
58 : PassName(name), PassArgument(
""), PassID(pi), IsCFGOnlyPass(
false),
59 IsAnalysis(
false), IsAnalysisGroup(
true), NormalCtor(nullptr) {}
76 bool isPassID(
const void *IDPtr)
const {
return PassID == IDPtr; }
102 "No default implementation found for analysis group!");
104 "Cannot call createPass on PassInfo without default ctor!");
113 ItfImpl.push_back(ItfPI);
124 void operator=(
const PassInfo &) =
delete;
Pass interface - Implemented by all 'passes'.
void setNormalCtor(NormalCtor_t Ctor)
const std::vector< const PassInfo * > & getInterfacesImplemented() const
getInterfacesImplemented - Return a list of all of the analysis group interfaces implemented by this ...
bool isCFGOnlyPass() const
isCFGOnlyPass - return true if this pass only looks at the CFG for the function.
const void * getTypeInfo() const
getTypeInfo - Return the id object for the pass...
Pass * createPass() const
createPass() - Use this method to create an instance of this pass.
void addInterfaceImplemented(const PassInfo *ItfPI)
addInterfaceImplemented - This method is called when this pass is registered as a member of an analys...
bool isAnalysisGroup() const
isAnalysisGroup - Return true if this is an analysis group, not a normal pass.
bool isPassID(const void *IDPtr) const
Return true if this PassID implements the specified ID pointer.
StringRef getPassArgument() const
getPassArgument - Return the command line option that may be passed to 'opt' that will cause this pas...
NormalCtor_t getNormalCtor() const
getNormalCtor - Return a pointer to a function, that when called, creates an instance of the pass and...
Function Alias Analysis false
PassInfo(StringRef name, StringRef arg, const void *pi, NormalCtor_t normal, bool isCFGOnly, bool is_analysis)
PassInfo ctor - Do not call this directly, this should only be invoked through RegisterPass.
PassInfo class - An instance of this class exists for every pass known by the system, and can be obtained from a live Pass by calling its getPassInfo() method.
print lazy value Lazy Value Info Printer Pass
StringRef getPassName() const
getPassName - Return the friendly name for the pass, never returns null
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
PassInfo(StringRef name, const void *pi)
PassInfo ctor - Do not call this directly, this should only be invoked through RegisterPass.
StringRef - Represent a constant reference to a string, i.e.