LLVM 20.0.0git
Macros | Functions
EHContGuardCatchret.cpp File Reference

This file contains a machine function pass to insert a symbol before each valid catchret target and store this in the MachineFunction's CatchRetTargets vector. More...

#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "ehcontguard-catchret"
 

Functions

 STATISTIC (EHContGuardCatchretTargets, "Number of EHCont Guard catchret targets")
 
 INITIALIZE_PASS (EHContGuardCatchret, "EHContGuardCatchret", "Insert symbols at valid catchret targets for /guard:ehcont", false, false) FunctionPass *llvm
 

Detailed Description

This file contains a machine function pass to insert a symbol before each valid catchret target and store this in the MachineFunction's CatchRetTargets vector.

This will be used to emit the table of valid targets used by EHCont Guard.

Definition in file EHContGuardCatchret.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "ehcontguard-catchret"

Definition at line 27 of file EHContGuardCatchret.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( EHContGuardCatchret  ,
"EHContGuardCatchret"  ,
"Insert symbols at valid catchret targets for /guard:ehcont"  ,
false  ,
false   
)

Definition at line 55 of file EHContGuardCatchret.cpp.

◆ STATISTIC()

STATISTIC ( EHContGuardCatchretTargets  ,
"Number of EHCont Guard catchret targets"   
)