|
LLVM 24.0.0git
|
#include "llvm/CodeGen/StaticDataAnnotator.h"#include "llvm/Analysis/ProfileSummaryInfo.h"#include "llvm/Analysis/StaticDataProfileInfo.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/Analysis.h"#include "llvm/IR/Module.h"#include "llvm/IR/PassManager.h"#include "llvm/InitializePasses.h"#include "llvm/Pass.h"Go to the source code of this file.
Classes | |
| class | StaticDataAnnotatorLegacy |
| A module pass which iterates global variables in the module and annotates their section prefixes based on profile-driven analysis. More... | |
Macros | |
| #define | DEBUG_TYPE "static-data-annotator" |
Functions | |
| static bool | annotateModule (Module &M, StaticDataProfileInfo *SDPI, ProfileSummaryInfo *PSI) |
| INITIALIZE_PASS (StaticDataAnnotatorLegacy, DEBUG_TYPE, "Static Data Annotator", false, false) ModulePass *llvm | |
| #define DEBUG_TYPE "static-data-annotator" |
Definition at line 40 of file StaticDataAnnotator.cpp.
|
static |
Definition at line 64 of file StaticDataAnnotator.cpp.
References Changed, llvm::StaticDataProfileInfo::getConstantSectionPrefix(), llvm::ProfileSummaryInfo::hasProfileSummary(), and llvm::memprof::IsAnnotationOK().
Referenced by llvm::StaticDataAnnoatorPass::run(), and StaticDataAnnotatorLegacy::runOnModule().
| INITIALIZE_PASS | ( | StaticDataAnnotatorLegacy | , |
| DEBUG_TYPE | , | ||
| "Static Data Annotator" | , | ||
| false | , | ||
| false | ) |
Definition at line 92 of file StaticDataAnnotator.cpp.
References llvm::createStaticDataAnnotatorLegacyPass(), and DEBUG_TYPE.