15 #ifndef LLVM_TRANSFORMS_PGOINSTRUMENTATION_H 16 #define LLVM_TRANSFORMS_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_PGOINSTRUMENTATION_H The profile annotation (profile-instr-use) pass for IR based PGO.
void setProfMetadata(Module *M, Instruction *TI, ArrayRef< uint64_t > EdgeCounts, uint64_t MaxCount)
This class represents lattice values for constants.
A Module instance is used to store all the information related to an LLVM module. ...
The instrumentation (profile-instr-gen) pass for IR based PGO.
A CRTP mix-in to automatically provide informational APIs needed for passes.
A set of analyses that are preserved following a run of a transformation pass.
void setIrrLoopHeaderMetadata(Module *M, Instruction *TI, uint64_t Count)
PGOInstrumentationGenCreateVar(std::string CSInstrName="")
PGOInstrumentationGen(bool IsCS=false)
The instrumentation (profile-instr-gen) pass for IR based PGO.
The profile size based optimization pass for memory intrinsics.
A container for analyses that lazily runs them and caches their results.
This header defines various interfaces for pass management in LLVM.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)