Go to the documentation of this file.
35 assert(&MF.
front() == &
MBB &&
"Shrink-wrapping not yet supported");
52 unsigned CvtaLocalOpcode =
53 (Is64Bit ? NVPTX::cvta_local_yes_64 : NVPTX::cvta_local_yes);
54 unsigned MovDepotOpcode =
55 (Is64Bit ? NVPTX::MOV_DEPOT_ADDR_64 : NVPTX::MOV_DEPOT_ADDR);
73 FrameReg = NVPTX::VRDepot;
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
This is an optimization pass for GlobalISel generic memory operations.
Information about stack frame layout on the target.
bool hasFP(const MachineFunction &MF) const override
hasFP - Return true if the specified function should have a dedicated frame pointer register.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
virtual const TargetInstrInfo * getInstrInfo() const
static bool is64Bit(const char *name)
DwarfFrameBase getDwarfFrameBase(const MachineFunction &MF) const override
Return the frame base information to be encoded in the DWARF subprogram debug info.
unsigned getFunctionNumber() const
getFunctionNumber - Return a unique ID for the current function.
ScalarTy getFixed() const
Register getFrameRegister(const MachineFunction &MF) const override
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...
instr_iterator erase(instr_iterator I)
Remove an instruction from the instruction list and delete it.
bool hasStackObjects() const
Return true if there are any stack objects in this function.
void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override
const MachineBasicBlock & front() const
MachineRegisterInfo & getRegInfo()
getRegInfo - Return information about the registers currently in use.
Register getFrameLocalRegister(const MachineFunction &MF) const
int getOffsetOfLocalArea() const
getOffsetOfLocalArea - This method returns the offset of the local area from the stack pointer on ent...
int64_t getObjectOffset(int ObjectIdx) const
Return the assigned stack offset of the specified object from the incoming stack pointer.
void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override
emitProlog/emitEpilog - These methods insert prolog and epilog code into the function.
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...
This struct is a compact representation of a valid (non-zero power of two) alignment.
bool use_empty(Register RegNo) const
use_empty - Return true if there are no instructions using the specified register.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Representation of each machine instruction.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
MachineFrameInfo & getFrameInfo()
getFrameInfo - Return the frame info object for the current function.
const MachineInstrBuilder & addReg(Register RegNo, unsigned flags=0, unsigned SubReg=0) const
Add a new virtual register operand.
StackOffset is a class to represent an offset with 2 dimensions, named fixed and scalable,...
Wrapper class representing virtual and physical registers.
const LLVMTargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
The MachineFrameInfo class represents an abstract stack frame until prolog/epilog code is inserted.
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
const MCInstrDesc & get(unsigned Opcode) const
Return the machine instruction descriptor that corresponds to the specified instruction opcode.