LLVM  16.0.0git
Macros | Functions | Variables
DwarfEHPrepare.cpp File Reference
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/Triple.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/EHPersonalities.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/RuntimeLibcalls.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/CodeGen/TargetPassConfig.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Dominators.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Type.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/Support/Casting.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Transforms/Utils/Local.h"
#include <cstddef>
Include dependency graph for DwarfEHPrepare.cpp:

Go to the source code of this file.


#define DEBUG_TYPE   "dwarfehprepare"


 STATISTIC (NumResumesLowered, "Number of resume calls lowered")
 STATISTIC (NumCleanupLandingPadsUnreachable, "Number of cleanup landing pads found unreachable")
 STATISTIC (NumCleanupLandingPadsRemaining, "Number of cleanup landing pads remaining")
 STATISTIC (NumNoUnwind, "Number of functions with nounwind")
 STATISTIC (NumUnwind, "Number of functions with unwind")
static bool prepareDwarfEH (CodeGenOpt::Level OptLevel, Function &F, const TargetLowering &TLI, DominatorTree *DT, const TargetTransformInfo *TTI, const Triple &TargetTriple)
 INITIALIZE_PASS_BEGIN (DwarfEHPrepareLegacyPass, DEBUG_TYPE, "Prepare DWARF exceptions", false, false) INITIALIZE_PASS_END(DwarfEHPrepareLegacyPass


Prepare DWARF exceptions
Prepare DWARF false

Macro Definition Documentation


#define DEBUG_TYPE   "dwarfehprepare"

Definition at line 44 of file DwarfEHPrepare.cpp.

Function Documentation


INITIALIZE_PASS_BEGIN ( DwarfEHPrepareLegacyPass  ,
"Prepare DWARF exceptions ,
false  ,

◆ prepareDwarfEH()

static bool prepareDwarfEH ( CodeGenOpt::Level  OptLevel,
Function F,
const TargetLowering TLI,
DominatorTree DT,
const TargetTransformInfo TTI,
const Triple TargetTriple 

Definition at line 312 of file DwarfEHPrepare.cpp.

References F, and llvm::DomTreeUpdater::Lazy.

◆ STATISTIC() [1/5]

STATISTIC ( NumCleanupLandingPadsRemaining  ,
"Number of cleanup landing pads remaining"   

◆ STATISTIC() [2/5]

STATISTIC ( NumCleanupLandingPadsUnreachable  ,
"Number of cleanup landing pads found unreachable"   

◆ STATISTIC() [3/5]

STATISTIC ( NumNoUnwind  ,
"Number of functions with nounwind  

◆ STATISTIC() [4/5]

STATISTIC ( NumResumesLowered  ,
"Number of resume calls lowered  

◆ STATISTIC() [5/5]

STATISTIC ( NumUnwind  ,
"Number of functions with unwind"   

Variable Documentation



Definition at line 375 of file DwarfEHPrepare.cpp.

◆ exceptions

Prepare DWARF exceptions

Definition at line 376 of file DwarfEHPrepare.cpp.

◆ false

Prepare DWARF false

Definition at line 376 of file DwarfEHPrepare.cpp.