13#ifndef LLVM_LIB_TARGET_LOONGARCH_LOONGARCHMACHINEFUNCTIONINFO_H
14#define LLVM_LIB_TARGET_LOONGARCH_LOONGARCHMACHINEFUNCTIONINFO_H
28 int VarArgsFrameIndex = 0;
30 int VarArgsSaveSize = 0;
33 unsigned CalleeSavedStackSize = 0;
37 int BranchRelaxationSpillFrameIndex = -1;
67 return BranchRelaxationSpillFrameIndex;
70 BranchRelaxationSpillFrameIndex =
Index;
80 JumpInfos.
push_back(std::make_pair(JrMI, JTIMO));
85 return JumpInfos[
Idx].second;
Returns the sub type a function will return at a given Idx Should correspond to the result type of an ExtractValue instruction executed with just that one unsigned Idx
Allocate memory in an ever growing pool, as if by bump-pointer.
LoongArchMachineFunctionInfo - This class is derived from MachineFunctionInfo and contains private Lo...
void addSExt32Register(Register Reg)
void setJumpInfo(MachineInstr *JrMI, MachineOperand *JTIMO)
LoongArchMachineFunctionInfo(const Function &F, const TargetSubtargetInfo *STI)
void setVarArgsFrameIndex(int Index)
int getBranchRelaxationSpillFrameIndex()
int getVarArgsFrameIndex() const
unsigned getJumpInfoSize()
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
void setBranchRelaxationSpillFrameIndex(int Index)
void setVarArgsSaveSize(int Size)
MachineInstr * getJumpInfoJrMI(unsigned Idx)
unsigned getVarArgsSaveSize() const
MachineOperand * getJumpInfoJTIMO(unsigned Idx)
unsigned getCalleeSavedStackSize() const
void setCalleeSavedStackSize(unsigned Size)
bool isSExt32Register(Register Reg) const
Ty * cloneInfo(const Ty &Old)
Representation of each machine instruction.
MachineOperand class - Representation of each machine instruction operand.
Wrapper class representing virtual and physical registers.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
TargetSubtargetInfo - Generic base class for all target subtargets.
This is an optimization pass for GlobalISel generic memory operations.
bool is_contained(R &&Range, const E &Element)
Returns true if Element is found in Range.
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...