LLVM 22.0.0git
X86IndirectBranchTracking.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "x86-indirect-branch-tracking"

Functions

 STATISTIC (NumEndBranchAdded, "Number of ENDBR instructions added")
static bool IsCallReturnTwice (llvm::MachineOperand &MOp)
static bool needsPrologueENDBR (MachineFunction &MF, const Module *M)

Variables

cl::opt< boolIndirectBranchTracking ("x86-indirect-branch-tracking", cl::init(false), cl::Hidden, cl::desc("Enable X86 indirect branch tracking pass."))

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "x86-indirect-branch-tracking"

Definition at line 30 of file X86IndirectBranchTracking.cpp.

Function Documentation

◆ IsCallReturnTwice()

◆ needsPrologueENDBR()

◆ STATISTIC()

STATISTIC ( NumEndBranchAdded ,
"Number of ENDBR instructions added"  )

Variable Documentation

◆ IndirectBranchTracking

cl::opt< bool > IndirectBranchTracking("x86-indirect-branch-tracking", cl::init(false), cl::Hidden, cl::desc("Enable X86 indirect branch tracking pass.")) ( "x86-indirect-branch-tracking" ,
cl::init(false) ,
cl::Hidden ,
cl::desc("Enable X86 indirect branch tracking pass.")  )