LLVM 20.0.0git
Macros | Functions | Variables
DwarfEHPrepare.cpp File Reference
#include "llvm/CodeGen/DwarfEHPrepare.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/CFG.h"
#include "llvm/Analysis/DomTreeUpdater.h"
#include "llvm/Analysis/TargetTransformInfo.h"
#include "llvm/CodeGen/RuntimeLibcallUtil.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/EHPersonalities.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/TargetParser/Triple.h"
#include "llvm/Transforms/Utils/Local.h"
#include <cstddef>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "dwarf-eh-prepare"
 

Functions

 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 (CodeGenOptLevel 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
 

Variables

 DEBUG_TYPE
 
Prepare DWARF exceptions
 
Prepare DWARF false
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "dwarf-eh-prepare"

Definition at line 45 of file DwarfEHPrepare.cpp.

Function Documentation

◆ INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( DwarfEHPrepareLegacyPass  ,
DEBUG_TYPE  ,
"Prepare DWARF exceptions"  ,
false  ,
false   
)

◆ prepareDwarfEH()

static bool prepareDwarfEH ( CodeGenOptLevel  OptLevel,
Function F,
const TargetLowering TLI,
DominatorTree DT,
const TargetTransformInfo TTI,
const Triple TargetTriple 
)
static

Definition at line 314 of file DwarfEHPrepare.cpp.

References F.

Referenced by llvm::DwarfEHPreparePass::run().

◆ 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"   
)

References F.

Variable Documentation

◆ DEBUG_TYPE

DEBUG_TYPE

Definition at line 398 of file DwarfEHPrepare.cpp.

◆ exceptions

Prepare DWARF exceptions

Definition at line 399 of file DwarfEHPrepare.cpp.

◆ false

Prepare DWARF false

Definition at line 399 of file DwarfEHPrepare.cpp.