LLVM 23.0.0git
X86MCLFIRewriter.cpp File Reference
#include "X86MCLFIRewriter.h"
#include "X86BaseInfo.h"
#include "X86MCTargetDesc.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"

Go to the source code of this file.

Functions

static bool isSyscall (const MCInst &Inst)
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()

◆ findFSMemOperand()

◆ isGR64OrNone()

bool isGR64OrNone ( MCRegister Reg)
static

Definition at line 67 of file X86MCLFIRewriter.cpp.

References Reg.

◆ isSyscall()

bool isSyscall ( const MCInst & Inst)
static

Definition at line 34 of file X86MCLFIRewriter.cpp.

References llvm::MCInst::getOpcode().

◆ readsRegister()

Variable Documentation

◆ LFIBaseReg

MCRegister LFIBaseReg = X86::R14
staticconstexpr

Definition at line 26 of file X86MCLFIRewriter.cpp.

◆ LFIScratchReg

MCRegister LFIScratchReg = X86::R11
staticconstexpr

Definition at line 27 of file X86MCLFIRewriter.cpp.

◆ LFITPReg

MCRegister LFITPReg = X86::R15
staticconstexpr

Definition at line 28 of file X86MCLFIRewriter.cpp.

Referenced by emitTPLoad().

◆ TPOffset

int TPOffset = 16
staticconstexpr

Definition at line 32 of file X86MCLFIRewriter.cpp.

Referenced by emitTPLoad().