Go to the documentation of this file.
15 #ifndef LLVM_TRANSFORMS_INSTRUMENTATION_PGOINSTRUMENTATION_H
16 #define LLVM_TRANSFORMS_INSTRUMENTATION_PGOINSTRUMENTATION_H
39 : CSInstrName(CSInstrName) {}
43 std::string CSInstrName;
61 std::string RemappingFilename =
"",
bool IsCS =
false);
66 std::string ProfileFileName;
67 std::string ProfileRemappingFileName;
76 : InLTO(IsInLTO), SamplePGO(SamplePGO) {}
100 #endif // LLVM_TRANSFORMS_INSTRUMENTATION_PGOINSTRUMENTATION_H
A set of analyses that are preserved following a run of a transformation pass.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
This is an optimization pass for GlobalISel generic memory operations.
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
A CRTP mix-in to automatically provide informational APIs needed for passes.
The profile annotation (profile-instr-use) pass for IR based PGO.
PGOInstrumentationGenCreateVar(std::string CSInstrName="")
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
void setIrrLoopHeaderMetadata(Module *M, Instruction *TI, uint64_t Count)
PGOMemOPSizeOpt()=default
The profile size based optimization pass for memory intrinsics.
The instrumentation (profile-instr-gen) pass for IR based PGO.
PreservedAnalyses run(Function &F, FunctionAnalysisManager &AM)
PGOInstrumentationGen(bool IsCS=false)
A Module instance is used to store all the information related to an LLVM module.
PGOInstrumentationUse(std::string Filename="", std::string RemappingFilename="", bool IsCS=false)
Machine Check Debug Module
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
The instrumentation (profile-instr-gen) pass for IR based PGO.
void setProfMetadata(Module *M, Instruction *TI, ArrayRef< uint64_t > EdgeCounts, uint64_t MaxCount)
A container for analyses that lazily runs them and caches their results.