LLVM 23.0.0git
AArch64MCLFIRewriter.cpp File Reference

Go to the source code of this file.

Functions

static bool isSyscall (const MCInst &Inst)
static bool isPrivilegedTP (int64_t Reg)
static bool isTPRead (const MCInst &Inst)
static bool isTPWrite (const MCInst &Inst)
static bool isPrivilegedTPAccess (const MCInst &Inst)

Variables

static constexpr MCRegister LFIBaseReg = AArch64::X27
static constexpr MCRegister LFIAddrReg = AArch64::X28
static constexpr MCRegister LFIScratchReg = AArch64::X26
static constexpr MCRegister LFICtxReg = AArch64::X25
static constexpr unsigned LFITPOffset = 2
static constexpr int LFISyscallOffset = -8

Function Documentation

◆ isPrivilegedTP()

bool isPrivilegedTP ( int64_t Reg)
static

Definition at line 44 of file AArch64MCLFIRewriter.cpp.

References Reg.

Referenced by isPrivilegedTPAccess().

◆ isPrivilegedTPAccess()

bool isPrivilegedTPAccess ( const MCInst & Inst)
static

◆ isSyscall()

bool isSyscall ( const MCInst & Inst)
static

Definition at line 40 of file AArch64MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode().

◆ isTPRead()

bool isTPRead ( const MCInst & Inst)
static

◆ isTPWrite()

bool isTPWrite ( const MCInst & Inst)
static

Variable Documentation

◆ LFIAddrReg

MCRegister LFIAddrReg = AArch64::X28
staticconstexpr

Definition at line 27 of file AArch64MCLFIRewriter.cpp.

◆ LFIBaseReg

MCRegister LFIBaseReg = AArch64::X27
staticconstexpr

Definition at line 26 of file AArch64MCLFIRewriter.cpp.

◆ LFICtxReg

MCRegister LFICtxReg = AArch64::X25
staticconstexpr

Definition at line 29 of file AArch64MCLFIRewriter.cpp.

◆ LFIScratchReg

MCRegister LFIScratchReg = AArch64::X26
staticconstexpr

Definition at line 28 of file AArch64MCLFIRewriter.cpp.

◆ LFISyscallOffset

int LFISyscallOffset = -8
staticconstexpr

Definition at line 38 of file AArch64MCLFIRewriter.cpp.

◆ LFITPOffset

unsigned LFITPOffset = 2
staticconstexpr

Definition at line 34 of file AArch64MCLFIRewriter.cpp.