LLVM 20.0.0git
Macros | Functions | Variables
AArch64SpeculationHardening.cpp File Reference
#include "AArch64Subtarget.h"
#include "Utils/AArch64BaseInfo.h"
#include "llvm/ADT/BitVector.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineOperand.h"
#include "llvm/CodeGen/RegisterScavenging.h"
#include "llvm/IR/DebugLoc.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/TargetMachine.h"
#include <cassert>

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "aarch64-speculation-hardening"
 
#define AARCH64_SPECULATION_HARDENING_NAME   "AArch64 speculation hardening pass"
 

Functions

 INITIALIZE_PASS (AArch64SpeculationHardening, "aarch64-speculation-hardening", AARCH64_SPECULATION_HARDENING_NAME, false, false) bool AArch64SpeculationHardening
 

Variables

static cl::opt< boolHardenLoads ("aarch64-slh-loads", cl::Hidden, cl::desc("Sanitize loads from memory."), cl::init(true))
 

Macro Definition Documentation

◆ AARCH64_SPECULATION_HARDENING_NAME

#define AARCH64_SPECULATION_HARDENING_NAME   "AArch64 speculation hardening pass"

Definition at line 114 of file AArch64SpeculationHardening.cpp.

◆ DEBUG_TYPE

#define DEBUG_TYPE   "aarch64-speculation-hardening"

Definition at line 112 of file AArch64SpeculationHardening.cpp.

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( AArch64SpeculationHardening  ,
"aarch64-speculation-hardening"  ,
AARCH64_SPECULATION_HARDENING_NAME  ,
false  ,
false   
)

Variable Documentation

◆ HardenLoads

cl::opt< bool > HardenLoads("aarch64-slh-loads", cl::Hidden, cl::desc("Sanitize loads from memory."), cl::init(true)) ( "aarch64-slh-loads"  ,
cl::Hidden  ,
cl::desc("Sanitize loads from memory.")  ,
cl::init(true  
)
static