LLVM  10.0.0svn
Macros | Functions | Variables
X86IndirectBranchTracking.cpp File Reference
#include "X86.h"
#include "X86InstrInfo.h"
#include "X86Subtarget.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
Include dependency graph for X86IndirectBranchTracking.cpp:

Go to the source code of this file.

Macros

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

Functions

 STATISTIC (NumEndBranchAdded, "Number of ENDBR instructions added")
 
bool IsCallReturnTwice (llvm::MachineOperand &MOp)
 

Variables

static 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 28 of file X86IndirectBranchTracking.cpp.

Function Documentation

◆ IsCallReturnTwice()

bool IsCallReturnTwice ( llvm::MachineOperand MOp)

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

Referenced by IsCallReturnTwice().