LLVM: lib/Target/NVPTX/NVPTXFrameLowering.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

23

24using namespace llvm;

25

28

32

36 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported");

39

42

43

44

46

47

48

49

50

51 bool Is64Bit =

53 unsigned CvtaLocalOpcode =

54 (Is64Bit ? NVPTX::cvta_local_64 : NVPTX::cvta_local);

55 unsigned MovDepotOpcode =

56 (Is64Bit ? NVPTX::MOV_DEPOT_ADDR_64 : NVPTX::MOV_DEPOT_ADDR);

58

63 }

69 }

70 }

71}

72

77 FrameReg = NVPTX::VRDepot;

80}

81

84

85

86

90

91

92 return MBB.erase(I);

93}

94

98 FrameBase.Kind = DwarfFrameBase::CFA;

100 return FrameBase;

101}

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

MachineBasicBlock MachineBasicBlock::iterator MBBI

const MCInstrDesc & get(unsigned Opcode) const

Return the machine instruction descriptor that corresponds to the specified instruction opcode.

MachineInstrBundleIterator< MachineInstr > iterator

The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted.

bool hasStackObjects() const

Return true if there are any stack objects in this function.

int64_t getObjectOffset(int ObjectIdx) const

Return the assigned stack offset of the specified object from the incoming stack pointer.

unsigned getFunctionNumber() const

getFunctionNumber - Return a unique ID for the current function.

const TargetSubtargetInfo & getSubtarget() const

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

MachineFrameInfo & getFrameInfo()

getFrameInfo - Return the frame info object for the current function.

MachineRegisterInfo & getRegInfo()

getRegInfo - Return information about the registers currently in use.

const MachineBasicBlock & front() const

const TargetMachine & getTarget() const

getTarget - Return the target machine this machine code is compiled with

const MachineInstrBuilder & addImm(int64_t Val) const

Add a new immediate operand.

const MachineInstrBuilder & addReg(Register RegNo, unsigned flags=0, unsigned SubReg=0) const

Add a new virtual register operand.

MachineRegisterInfo - Keep track of information for virtual and physical registers,...

bool use_empty(Register RegNo) const

use_empty - Return true if there are no instructions using the specified register.

DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override

Return the frame base information to be encoded in the DWARF subprogram debug info.

Definition NVPTXFrameLowering.cpp:96

bool hasFPImpl(const MachineFunction &MF) const override

Definition NVPTXFrameLowering.cpp:29

MachineBasicBlock::iterator eliminateCallFramePseudoInstr(MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const override

This method is called during prolog/epilog code insertion to eliminate call frame setup and destroy p...

Definition NVPTXFrameLowering.cpp:87

void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override

emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.

Definition NVPTXFrameLowering.cpp:33

NVPTXFrameLowering()

Definition NVPTXFrameLowering.cpp:26

StackOffset getFrameIndexReference(const MachineFunction &MF, int FI, Register &FrameReg) const override

getFrameIndexReference - This method should return the base register and offset used to reference a f...

Definition NVPTXFrameLowering.cpp:74

void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override

Definition NVPTXFrameLowering.cpp:82

Register getFrameLocalRegister(const MachineFunction &MF) const

Register getFrameRegister(const MachineFunction &MF) const override

Wrapper class representing virtual and physical registers.

StackOffset holds a fixed and a scalable offset in bytes.

int64_t getFixed() const

Returns the fixed component of the stack.

int getOffsetOfLocalArea() const

getOffsetOfLocalArea - This method returns the offset of the local area from the stack pointer on ent...

TargetFrameLowering(StackDirection D, Align StackAl, int LAO, Align TransAl=Align(1), bool StackReal=true)

virtual const TargetInstrInfo * getInstrInfo() const

This is an optimization pass for GlobalISel generic memory operations.

MachineInstrBuilder BuildMI(MachineFunction &MF, const MIMetadata &MIMD, const MCInstrDesc &MCID)

Builder interface. Specify how to create the initial instruction itself.

This struct is a compact representation of a valid (non-zero power of two) alignment.

union llvm::TargetFrameLowering::DwarfFrameBase::@004076321055032247336074224075335064105264310375 Location

enum llvm::TargetFrameLowering::DwarfFrameBase::FrameBaseKind Kind