14 #ifndef LLVM_LIB_TARGET_AARCH64_AARCH64MACHINEFUNCTIONINFO_H 15 #define LLVM_LIB_TARGET_AARCH64_AARCH64MACHINEFUNCTIONINFO_H 41 unsigned BytesInStackArgArea = 0;
46 unsigned ArgumentStackToRestore = 0;
50 bool HasStackFrame =
false;
53 unsigned LocalStackSize;
56 unsigned CalleeSavedStackSize;
60 unsigned NumLocalDynamicTLSAccesses = 0;
64 int VarArgsStackIndex = 0;
68 int VarArgsGPRIndex = 0;
72 unsigned VarArgsGPRSize = 0;
76 int VarArgsFPRIndex = 0;
80 unsigned VarArgsFPRSize = 0;
84 bool IsSplitCSR =
false;
88 bool StackRealigned =
false;
92 bool CalleeSaveStackHasFreeSpace =
false;
117 ArgumentStackToRestore = bytes;
127 return CalleeSaveStackHasFreeSpace;
130 CalleeSaveStackHasFreeSpace = s;
144 return NumLocalDynamicTLSAccesses;
180 : Kind(Kind), Args(Args.
begin(), Args.
end()) {
196 LOHRelated.insert(Args.
begin(), Args.
end());
207 #endif // LLVM_LIB_TARGET_AARCH64_AARCH64MACHINEFUNCTIONINFO_H const_iterator end(StringRef path)
Get end iterator over path.
AArch64FunctionInfo - This class is derived from MachineFunctionInfo and contains private AArch64-spe...
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
void setVarArgsGPRSize(unsigned Size)
Compute iterated dominance frontiers using a linear time algorithm.
unsigned getNumLocalDynamicTLSAccesses() const
unsigned getLocalStackSize() const
int getVarArgsStackIndex() const
void setVarArgsStackIndex(int Index)
const SetOfInstructions & getLOHRelated() const
MCLOHType getKind() const
void setVarArgsFPRIndex(int Index)
bool hasFnAttribute(Attribute::AttrKind Kind) const
Return true if the function has the attribute.
void setVarArgsFPRSize(unsigned Size)
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
int getVarArgsGPRIndex() const
bool isStackRealigned() const
void setHasRedZone(bool s)
unsigned getArgumentStackToRestore() const
void setArgumentStackToRestore(unsigned bytes)
AArch64FunctionInfo(MachineFunction &MF)
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
unsigned getCalleeSavedStackSize() const
void setLocalStackSize(unsigned Size)
AArch64FunctionInfo()=default
void incNumLocalDynamicTLSAccesses()
unsigned getVarArgsGPRSize() const
unsigned getVarArgsFPRSize() const
MILOHDirective(MCLOHType Kind, LOHArgs Args)
void setCalleeSaveStackHasFreeSpace(bool s)
MCLOHType
Linker Optimization Hint Type.
void setVarArgsGPRIndex(int Index)
void setHasStackFrame(bool s)
ArrayRef< const MachineInstr * > LOHArgs
unsigned getBytesInStackArgArea() const
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small...
void setStackRealigned(bool s)
bool hasCalleeSaveStackFreeSpace() const
const Function & getFunction() const
Return the LLVM function that this machine code represents.
Optional< bool > hasRedZone() const
const MILOHContainer & getLOHContainer() const
static bool isValidMCLOHType(unsigned Kind)
void setBytesInStackArgArea(unsigned bytes)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void addLOHDirective(MCLOHType Kind, MILOHArgs Args)
Add a LOH directive of this Kind and this Args.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
int getVarArgsFPRIndex() const
bool hasStackFrame() const
void setCalleeSavedStackSize(unsigned Size)
void setIsSplitCSR(bool s)