LLVM: lib/Target/X86/X86MachineFunctionInfo.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

13

14using namespace llvm;

15

19

23

30

35

36void X86MachineFunctionInfo::anchor() { }

37

39 if (!RestoreBasePointerOffset) {

42 unsigned SlotSize = RegInfo->getSlotSize();

44 unsigned Reg = *CSR; ++CSR) {

45 if (X86::GR64RegClass.contains(Reg) || X86::GR32RegClass.contains(Reg))

46 RestoreBasePointerOffset -= SlotSize;

47 }

48 }

49}

50

static bool contains(SmallPtrSetImpl< ConstantExpr * > &Cache, ConstantExpr *Expr, Constant *C)

const TargetSubtargetInfo & getSubtarget() const

getSubtarget - Return the subtarget for which this machine code is being compiled.

MachineRegisterInfo & getRegInfo()

getRegInfo - Return information about the registers currently in use.

Ty * cloneInfo(const Ty &Old)

LLVM_ABI const MCPhysReg * getCalleeSavedRegs() const

Returns list of callee saved registers.

X86MachineFunctionInfo - This class is derived from MachineFunction and contains private X86 target-s...

X86MachineFunctionInfo()=default

void setRestoreBasePointer(const MachineFunction *MF)

Definition X86MachineFunctionInfo.cpp:38

MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override

Make a functionally equivalent copy of this MachineFunctionInfo in MF.

Definition X86MachineFunctionInfo.cpp:24

void initializeBaseYamlFields(const yaml::X86MachineFunctionInfo &YamlMFI)

Definition X86MachineFunctionInfo.cpp:31

unsigned getSlotSize() const

This is an optimization pass for GlobalISel generic memory operations.

uint16_t MCPhysReg

An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...

BumpPtrAllocatorImpl<> BumpPtrAllocator

The standard BumpPtrAllocator which just uses the default template parameters.

MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...

This class should be specialized by any type that needs to be converted to/from a YAML mapping.

AMXProgModelEnum AMXProgModel

void mappingImpl(yaml::IO &YamlIO) override

Definition X86MachineFunctionInfo.cpp:20

X86MachineFunctionInfo()=default