LLVM 24.0.0git
X86MCLFIRewriter.cpp File Reference

Go to the source code of this file.

Functions

static bool isSyscall (const MCInst &Inst)
static bool isDirectCall (const MCInst &Inst)
static bool isSupportedIndirectBranch (const MCInst &Inst)
static bool hasNoTrackPrefix (const MCInst &Inst, const MCInstrInfo &InstInfo)
static int findFSMemOperand (const MCInst &Inst, const MCInstrInfo &InstInfo)
static bool readsRegister (const MCInst &Inst, const MCInstrDesc &Desc, MCRegister Reg, const MCRegisterInfo &RI)
static bool isGR64OrNone (MCRegister Reg)
static void emitTPLoad (MCRegister Reg, MCStreamer &Out, const MCSubtargetInfo &STI)

Variables

static constexpr MCRegister LFIBaseReg = X86::R14
static constexpr MCRegister LFIScratchReg = X86::R11
static constexpr MCRegister LFITPReg = X86::R15
static constexpr int TPOffset = 16

Function Documentation

◆ emitTPLoad()

void emitTPLoad ( MCRegister Reg,
MCStreamer & Out,
const MCSubtargetInfo & STI )
static

Definition at line 267 of file X86MCLFIRewriter.cpp.

References LFITPReg, Reg, and TPOffset.

◆ findFSMemOperand()

◆ hasNoTrackPrefix()

bool hasNoTrackPrefix ( const MCInst & Inst,
const MCInstrInfo & InstInfo )
static

◆ isDirectCall()

bool isDirectCall ( const MCInst & Inst)
static

Definition at line 39 of file X86MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode().

◆ isGR64OrNone()

bool isGR64OrNone ( MCRegister Reg)
static

Definition at line 91 of file X86MCLFIRewriter.cpp.

References Reg.

◆ isSupportedIndirectBranch()

bool isSupportedIndirectBranch ( const MCInst & Inst)
static

Definition at line 43 of file X86MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode().

◆ isSyscall()

bool isSyscall ( const MCInst & Inst)
static

Definition at line 35 of file X86MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode().

◆ readsRegister()

Variable Documentation

◆ LFIBaseReg

MCRegister LFIBaseReg = X86::R14
staticconstexpr

Definition at line 27 of file X86MCLFIRewriter.cpp.

◆ LFIScratchReg

MCRegister LFIScratchReg = X86::R11
staticconstexpr

Definition at line 28 of file X86MCLFIRewriter.cpp.

◆ LFITPReg

MCRegister LFITPReg = X86::R15
staticconstexpr

Definition at line 29 of file X86MCLFIRewriter.cpp.

Referenced by emitTPLoad().

◆ TPOffset

int TPOffset = 16
staticconstexpr

Definition at line 33 of file X86MCLFIRewriter.cpp.

Referenced by emitTPLoad().