mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
Implementation of path profiling.
Modified patch by Adam Preuss. This builds on the existing framework for block tracing, edge profiling and optimal edge profiling. See -help-hidden for new flags. For documentation, see the technical report "Implementation of Path Profiling..." in llvm.org/pubs. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124515 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,9 +53,13 @@ void llvm::initializeAnalysis(PassRegistry &Registry) {
|
||||
initializePostDominanceFrontierPass(Registry);
|
||||
initializeProfileEstimatorPassPass(Registry);
|
||||
initializeNoProfileInfoPass(Registry);
|
||||
initializeNoPathProfileInfoPass(Registry);
|
||||
initializeProfileInfoAnalysisGroup(Registry);
|
||||
initializePathProfileInfoAnalysisGroup(Registry);
|
||||
initializeLoaderPassPass(Registry);
|
||||
initializePathProfileLoaderPassPass(Registry);
|
||||
initializeProfileVerifierPassPass(Registry);
|
||||
initializePathProfileVerifierPass(Registry);
|
||||
initializeRegionInfoPass(Registry);
|
||||
initializeRegionViewerPass(Registry);
|
||||
initializeRegionPrinterPass(Registry);
|
||||
@@ -73,14 +77,14 @@ void LLVMInitializeAnalysis(LLVMPassRegistryRef R) {
|
||||
LLVMBool LLVMVerifyModule(LLVMModuleRef M, LLVMVerifierFailureAction Action,
|
||||
char **OutMessages) {
|
||||
std::string Messages;
|
||||
|
||||
|
||||
LLVMBool Result = verifyModule(*unwrap(M),
|
||||
static_cast<VerifierFailureAction>(Action),
|
||||
OutMessages? &Messages : 0);
|
||||
|
||||
|
||||
if (OutMessages)
|
||||
*OutMessages = strdup(Messages.c_str());
|
||||
|
||||
|
||||
return Result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user