Go to the source code of this file.
|
| STATISTIC (NumFunc, "Number of functions") |
|
| STATISTIC (NumCandidates, "Number of shrink-wrapping candidates") |
|
| STATISTIC (NumCandidatesDropped, "Number of shrink-wrapping candidates dropped because of frequency") |
|
template<typename ListOfBBs , typename DominanceAnalysis > |
static MachineBasicBlock * | FindIDom (MachineBasicBlock &Block, ListOfBBs BBs, DominanceAnalysis &Dom) |
| Helper function to find the immediate (post) dominator. More...
|
|
static bool | giveUpWithRemarks (MachineOptimizationRemarkEmitter *ORE, StringRef RemarkName, StringRef RemarkMessage, const DiagnosticLocation &Loc, const MachineBasicBlock *MBB) |
|
◆ DEBUG_TYPE
#define DEBUG_TYPE "shrink-wrap" |
◆ FindIDom()
template<typename ListOfBBs , typename DominanceAnalysis >
◆ giveUpWithRemarks()
Definition at line 442 of file ShrinkWrap.cpp.
References assert(), llvm::MachineFunction::begin(), llvm::cl::BOU_FALSE, llvm::cl::BOU_TRUE, llvm::cl::BOU_UNSET, llvm::TargetFrameLowering::canUseAsEpilogue(), llvm::TargetFrameLowering::canUseAsPrologue(), llvm::dbgs(), DEBUG_TYPE, llvm::MachineOptimizationRemarkEmitter::emit(), llvm::MachineFunction::empty(), EnableShrinkWrapOpt, llvm::TargetFrameLowering::enableShrinkWrapping(), llvm::MachineBasicBlock::front(), llvm::MachineFunction::front(), llvm::MachineBlockFrequencyInfo::getBlockFreq(), llvm::MachineInstr::getDebugLoc(), llvm::TargetSubtargetInfo::getFrameLowering(), llvm::BlockFrequency::getFrequency(), llvm::MachineFunction::getFunction(), llvm::TargetMachine::getMCAsmInfo(), llvm::MachineBasicBlock::getName(), llvm::MachineFunction::getName(), llvm::MachineBasicBlock::getNumber(), llvm::TargetSubtargetInfo::getRegisterInfo(), llvm::Function::getSubprogram(), llvm::MachineFunction::getSubtarget(), llvm::MachineFunction::getTarget(), llvm::Function::hasFnAttribute(), llvm::cl::init(), llvm::MachineBasicBlock::isEHFuncletEntry(), llvm::MachineBasicBlock::isEHPad(), LLVM_DEBUG, llvm_unreachable, MI, llvm::Attribute::SanitizeAddress, llvm::Attribute::SanitizeHWAddress, llvm::Attribute::SanitizeMemory, llvm::Attribute::SanitizeThread, llvm::MachineFrameInfo::setSavePoint(), llvm::MachineBasicBlock::successors(), TRI, and llvm::MCAsmInfo::usesWindowsCFI().
◆ STATISTIC() [1/3]
STATISTIC |
( |
NumFunc |
, |
|
|
"Number of functions" |
|
|
) |
| |
◆ STATISTIC() [2/3]
STATISTIC |
( |
NumCandidates |
, |
|
|
"Number of shrink-wrapping candidates" |
|
|
) |
| |
◆ STATISTIC() [3/3]
STATISTIC |
( |
NumCandidatesDropped |
, |
|
|
"Number of shrink-wrapping candidates dropped because of frequency" |
|
|
) |
| |
◆ EnableShrinkWrapOpt