14 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_H 15 #define LLVM_TRANSFORMS_INSTRUMENTATION_H 29 class OptimizationRemarkEmitter;
77 bool SamplePGO =
false);
102 bool AttachProfToDirectCall,
112 bool DoCounterPromotion =
false;
126 bool Recover =
false,
127 bool UseAfterScope =
false);
129 bool Recover =
false,
130 bool UseGlobalsGC =
true);
134 bool Recover =
false);
137 bool Recover =
false);
144 const std::vector<std::string> &ABIListFiles = std::vector<std::string>(),
145 void *(*getArgTLS)() =
nullptr,
void *(*getRetValTLS)() =
nullptr);
153 } ToolType = ESAN_None;
169 } CoverageType = SCK_None;
170 bool IndirectCalls =
false;
171 bool TraceBB =
false;
172 bool TraceCmp =
false;
173 bool TraceDiv =
false;
174 bool TraceGep =
false;
175 bool Use8bitCounters =
false;
176 bool TracePC =
false;
177 bool TracePCGuard =
false;
178 bool Inline8bitCounters =
false;
179 bool PCTable =
false;
180 bool NoPrune =
false;
181 bool StackDepth =
false;
205 uint64_t Scaled = Count / Scale;
212 #endif // LLVM_TRANSFORMS_INSTRUMENTATION_H
ModulePass * createPGOInstrumentationGenLegacyPass()
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
Compute iterated dominance frontiers using a linear time algorithm.
ModulePass * createGCOVProfilerPass(const GCOVOptions &Options=GCOVOptions::getDefault())
FunctionPass * createPGOMemOPSizeOptLegacyPass()
static GCOVOptions getDefault()
ModulePass * createInstrProfilingLegacyPass(const InstrProfOptions &Options=InstrProfOptions())
Insert frontend instrumentation based profiling.
ModulePass * createEfficiencySanitizerPass(const EfficiencySanitizerOptions &Options=EfficiencySanitizerOptions())
Instruction * promoteIndirectCall(Instruction *Inst, Function *F, uint64_t Count, uint64_t TotalCount, bool AttachProfToDirectCall, OptimizationRemarkEmitter *ORE)
ModulePass * createPGOInstrumentationUseLegacyPass(StringRef Filename=StringRef(""))
FunctionPass * createThreadSanitizerPass()
FunctionPass class - This class is used to implement most global optimizations.
static uint64_t calculateCountScale(uint64_t MaxCount)
Calculate what to divide by to scale counts.
static uint32_t scaleBranchCount(uint64_t Count, uint64_t Scale)
Scale an individual branch count.
std::string InstrProfileOutput
BasicBlock::iterator PrepareToSplitEntryBlock(BasicBlock &BB, BasicBlock::iterator IP)
Instrumentation passes often insert conditional checks into entry blocks.
Options for the frontend instrumentation based profiling pass.
InstListType::iterator iterator
Instruction iterators...
ModulePass class - This class is used to implement unstructured interprocedural optimizations and ana...
ModulePass * createSanitizerCoverageModulePass(const SanitizerCoverageOptions &Options=SanitizerCoverageOptions())
FunctionPass * createHWAddressSanitizerPass(bool CompileKernel=false, bool Recover=false)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ModulePass * createDataFlowSanitizerPass(const std::vector< std::string > &ABIListFiles=std::vector< std::string >(), void *(*getArgTLS)()=nullptr, void *(*getRetValTLS)()=nullptr)
FunctionPass * createMemorySanitizerPass(int TrackOrigins=0, bool Recover=false)
FunctionPass * createAddressSanitizerFunctionPass(bool CompileKernel=false, bool Recover=false, bool UseAfterScope=false)
StringRef - Represent a constant reference to a string, i.e.
ModulePass * createPGOIndirectCallPromotionLegacyPass(bool InLTO=false, bool SamplePGO=false)
ModulePass * createAddressSanitizerModulePass(bool CompileKernel=false, bool Recover=false, bool UseGlobalsGC=true)