diff options
author | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-30 20:16:31 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@mips.com> | 2012-10-30 20:16:31 +0000 |
commit | 2f34d754d00fbe2e4a98762d71d0fae5f4b0cf45 (patch) | |
tree | 4363eef803f374eb502a65e87910b47744c5e8ec /lib/Target/Mips/MipsISelLowering.h | |
parent | dfa4cecb1e549d96f800f7ebc793a342d8df1244 (diff) | |
download | llvm-2f34d754d00fbe2e4a98762d71d0fae5f4b0cf45.tar.gz llvm-2f34d754d00fbe2e4a98762d71d0fae5f4b0cf45.tar.bz2 llvm-2f34d754d00fbe2e4a98762d71d0fae5f4b0cf45.tar.xz |
[mips] Allow tail-call optimization for vararg functions and functions which
use the caller's stack.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167048 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.h')
-rw-r--r-- | lib/Target/Mips/MipsISelLowering.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/Mips/MipsISelLowering.h b/lib/Target/Mips/MipsISelLowering.h index 4f1ce0cd1c..8b80dff89b 100644 --- a/lib/Target/Mips/MipsISelLowering.h +++ b/lib/Target/Mips/MipsISelLowering.h @@ -141,6 +141,7 @@ namespace llvm { //===--------------------------------------------------------------------===// // TargetLowering Implementation //===--------------------------------------------------------------------===// + class MipsFunctionInfo; class MipsTargetLowering : public TargetLowering { public: @@ -275,8 +276,8 @@ namespace llvm { /// IsEligibleForTailCallOptimization - Check whether the call is eligible /// for tail call optimization. bool IsEligibleForTailCallOptimization(const MipsCC &MipsCCInfo, - bool IsVarArg, - unsigned NextStackOffset) const; + unsigned NextStackOffset, + const MipsFunctionInfo& FI) const; /// copyByValArg - Copy argument registers which were used to pass a byval /// argument to the stack. Create a stack frame object for the byval |