|
LLVM 24.0.0git
|
#include "llvm/Analysis/StackSafetyAnalysis.h"#include "AnalysisOptions.h"#include "llvm/ADT/APInt.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/ADT/SmallVector.h"#include "llvm/ADT/Statistic.h"#include "llvm/Analysis/ModuleSummaryAnalysis.h"#include "llvm/Analysis/ScalarEvolution.h"#include "llvm/Analysis/StackLifetime.h"#include "llvm/IR/ConstantRange.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/GlobalValue.h"#include "llvm/IR/InstIterator.h"#include "llvm/IR/Instruction.h"#include "llvm/IR/Instructions.h"#include "llvm/IR/IntrinsicInst.h"#include "llvm/IR/ModuleSummaryIndex.h"#include "llvm/InitializePasses.h"#include "llvm/Support/Casting.h"#include "llvm/Support/FormatVariadic.h"#include "llvm/Support/LibraryOptionsContext.h"#include "llvm/Support/raw_ostream.h"#include <algorithm>#include <tuple>Go to the source code of this file.
Classes | |
| struct | llvm::StackSafetyInfo::InfoTy |
| struct | llvm::StackSafetyGlobalInfo::InfoTy |
Macros | |
| #define | DEBUG_TYPE "stack-safety" |
Functions | |
| STATISTIC (NumAllocaStackSafe, "Number of safe allocas") | |
| STATISTIC (NumAllocaTotal, "Number of total allocas") | |
| STATISTIC (NumCombinedCalleeLookupTotal, "Number of total callee lookups on combined index.") | |
| STATISTIC (NumCombinedCalleeLookupFailed, "Number of failed callee lookups on combined index.") | |
| STATISTIC (NumModuleCalleeLookupTotal, "Number of total callee lookups on module index.") | |
| STATISTIC (NumModuleCalleeLookupFailed, "Number of failed callee lookups on module index.") | |
| STATISTIC (NumCombinedParamAccessesBefore, "Number of total param accesses before generateParamAccessSummary.") | |
| STATISTIC (NumCombinedParamAccessesAfter, "Number of total param accesses after generateParamAccessSummary.") | |
| STATISTIC (NumCombinedDataFlowNodes, "Number of total nodes in combined index for dataflow processing.") | |
| STATISTIC (NumIndexCalleeUnhandled, "Number of index callee which are unhandled.") | |
| STATISTIC (NumIndexCalleeMultipleWeak, "Number of index callee non-unique weak.") | |
| STATISTIC (NumIndexCalleeMultipleExternal, "Number of index callee non-unique external.") | |
| INITIALIZE_PASS_BEGIN (StackSafetyInfoWrapperPass, LocalPassArg, LocalPassName, false, true) INITIALIZE_PASS_END(StackSafetyInfoWrapperPass | |
| INITIALIZE_PASS_BEGIN (StackSafetyGlobalInfoWrapperPass, DEBUG_TYPE, GlobalPassName, false, true) INITIALIZE_PASS_END(StackSafetyGlobalInfoWrapperPass | |
Variables | |
| static const char | LocalPassArg [] = "stack-safety-local" |
| static const char | LocalPassName [] = "Stack Safety Local Analysis" |
| false | |
| static true const char | GlobalPassName [] = "Stack Safety Analysis" |
| DEBUG_TYPE | |
| #define DEBUG_TYPE "stack-safety" |
Definition at line 38 of file StackSafetyAnalysis.cpp.
| INITIALIZE_PASS_BEGIN | ( | StackSafetyGlobalInfoWrapperPass | , |
| DEBUG_TYPE | , | ||
| GlobalPassName | , | ||
| false | , | ||
| true | ) |
References DEBUG_TYPE, GlobalPassName, INITIALIZE_PASS_BEGIN, and INITIALIZE_PASS_DEPENDENCY.
| INITIALIZE_PASS_BEGIN | ( | StackSafetyInfoWrapperPass | , |
| LocalPassArg | , | ||
| LocalPassName | , | ||
| false | , | ||
| true | ) |
References INITIALIZE_PASS_DEPENDENCY, INITIALIZE_PASS_END, LocalPassArg, and LocalPassName.
| STATISTIC | ( | NumAllocaStackSafe | , |
| "Number of safe allocas" | ) |
| STATISTIC | ( | NumAllocaTotal | , |
| "Number of total allocas" | ) |
| STATISTIC | ( | NumCombinedCalleeLookupFailed | , |
| "Number of failed callee lookups on combined index." | ) |
| STATISTIC | ( | NumCombinedCalleeLookupTotal | , |
| "Number of total callee lookups on combined index." | ) |
| STATISTIC | ( | NumCombinedDataFlowNodes | , |
| "Number of total nodes in combined index for dataflow processing." | ) |
| STATISTIC | ( | NumCombinedParamAccessesAfter | , |
| "Number of total param accesses after generateParamAccessSummary." | ) |
| STATISTIC | ( | NumCombinedParamAccessesBefore | , |
| "Number of total param accesses before generateParamAccessSummary." | ) |
| STATISTIC | ( | NumIndexCalleeMultipleExternal | , |
| "Number of index callee non-unique external." | ) |
| STATISTIC | ( | NumIndexCalleeMultipleWeak | , |
| "Number of index callee non-unique weak." | ) |
| STATISTIC | ( | NumIndexCalleeUnhandled | , |
| "Number of index callee which are unhandled." | ) |
| STATISTIC | ( | NumModuleCalleeLookupFailed | , |
| "Number of failed callee lookups on module index." | ) |
| STATISTIC | ( | NumModuleCalleeLookupTotal | , |
| "Number of total callee lookups on module index." | ) |
| DEBUG_TYPE |
Definition at line 1225 of file StackSafetyAnalysis.cpp.
| false |
Definition at line 1218 of file StackSafetyAnalysis.cpp.
|
static |
Definition at line 1220 of file StackSafetyAnalysis.cpp.
Referenced by INITIALIZE_PASS_BEGIN().
|
static |
Definition at line 1212 of file StackSafetyAnalysis.cpp.
Referenced by INITIALIZE_PASS_BEGIN().
|
static |
Definition at line 1213 of file StackSafetyAnalysis.cpp.
Referenced by INITIALIZE_PASS_BEGIN().