diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-30 19:37:25 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-30 19:37:25 +0000 |
commit | b33b34a7dc447cf52702b8892c9829344e81f73a (patch) | |
tree | 92ab3dcbf915c905c1cd01498c341e385cfa737e /lib/Target/Mips/MipsMachineFunction.h | |
parent | 202d1cb8a587a9513d8bb65bf4a3d88a55132860 (diff) | |
download | external_llvm-b33b34a7dc447cf52702b8892c9829344e81f73a.zip external_llvm-b33b34a7dc447cf52702b8892c9829344e81f73a.tar.gz external_llvm-b33b34a7dc447cf52702b8892c9829344e81f73a.tar.bz2 |
Add code for saving formal argument information to MipsFunctionInfo. This
information will be used by IsEligibleForTailCallOptimization to determine
whether a call can be tail-call optimized.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsMachineFunction.h')
-rw-r--r-- | lib/Target/Mips/MipsMachineFunction.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Target/Mips/MipsMachineFunction.h b/lib/Target/Mips/MipsMachineFunction.h index f9efe07..663aaec 100644 --- a/lib/Target/Mips/MipsMachineFunction.h +++ b/lib/Target/Mips/MipsMachineFunction.h @@ -47,6 +47,10 @@ class MipsFunctionInfo : public MachineFunctionInfo { /// VarArgsFrameIndex - FrameIndex for start of varargs area. int VarArgsFrameIndex; + // Formal argument information obtained during call to LowerFormalArguments. + unsigned NextStackOffset; + bool HasByvalArg; + bool EmitNOAT; public: @@ -67,6 +71,13 @@ public: int getVarArgsFrameIndex() const { return VarArgsFrameIndex; } void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; } + unsigned nextStackOffset() const { return NextStackOffset; } + bool hasByvalArg() const { return HasByvalArg; } + void setFormalArgInfo(unsigned Offset, bool HasByval) { + NextStackOffset = Offset; + HasByvalArg = HasByval; + } + bool getEmitNOAT() const { return EmitNOAT; } void setEmitNOAT() { EmitNOAT = true; } }; |