summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-11-01 18:13:52 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-11-01 18:13:52 +0000
commit853c2435b69b5348120d458da46973f0130c767c (patch)
tree721d5bb0eb04ed58813e437df39d33a8eef3278d /llvm/lib/Target/Mips/MipsISelLowering.h
parent068eea2d1420560ceca33e8287a8955dd5faadc9 (diff)
downloadbcm5719-llvm-853c2435b69b5348120d458da46973f0130c767c.tar.gz
bcm5719-llvm-853c2435b69b5348120d458da46973f0130c767c.zip
[mips] Remove MipsCC::CCInfo. NFC.
Summary: It's now passed in as an argument to functions that need it. Eventually this argument will be replaced by the 'this' pointer for a MipsCCState object. Depends on D5966 Reviewers: vmedic Reviewed By: vmedic Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D5967 llvm-svn: 221054
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.h')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.h b/llvm/lib/Target/Mips/MipsISelLowering.h
index a35946dac3c..1b4872528d4 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.h
+++ b/llvm/lib/Target/Mips/MipsISelLowering.h
@@ -362,12 +362,12 @@ namespace llvm {
void analyzeCallOperands(const SmallVectorImpl<ISD::OutputArg> &Outs,
bool IsVarArg, bool IsSoftFloat,
const SDNode *CallNode,
- std::vector<ArgListEntry> &FuncArgs);
+ std::vector<ArgListEntry> &FuncArgs,
+ CCState &State);
void analyzeFormalArguments(const SmallVectorImpl<ISD::InputArg> &Ins,
bool IsSoftFloat,
- Function::const_arg_iterator FuncArg);
-
- const CCState &getCCInfo() const { return CCInfo; }
+ Function::const_arg_iterator FuncArg,
+ CCState &State);
/// hasByValArg - Returns true if function has byval arguments.
bool hasByValArg() const { return !ByValArgs.empty(); }
@@ -386,7 +386,7 @@ namespace llvm {
private:
void handleByValArg(unsigned ValNo, MVT ValVT, MVT LocVT,
CCValAssign::LocInfo LocInfo,
- ISD::ArgFlagsTy ArgFlags);
+ ISD::ArgFlagsTy ArgFlags, CCState &State);
/// useRegsForByval - Returns true if the calling convention allows the
/// use of registers to pass byval arguments.
@@ -394,8 +394,8 @@ namespace llvm {
const MCPhysReg *shadowRegs() const;
- void allocateRegs(ByValArgInfo &ByVal, unsigned ByValSize,
- unsigned Align);
+ void allocateRegs(ByValArgInfo &ByVal, unsigned ByValSize, unsigned Align,
+ CCState &State);
/// Return the type of the register which is used to pass an argument or
/// return a value. This function returns f64 if the argument is an i64
@@ -410,7 +410,6 @@ namespace llvm {
SpecialCallingConvType getSpecialCallingConv(const SDNode *Callee) const;
- CCState &CCInfo;
CallingConv::ID CallConv;
const MipsSubtarget &Subtarget;
SmallVector<ByValArgInfo, 2> ByValArgs;
@@ -504,7 +503,8 @@ namespace llvm {
/// to the stack. Also create a stack frame object for the first variable
/// argument.
void writeVarArgRegs(std::vector<SDValue> &OutChains, const MipsCC &CC,
- SDValue Chain, SDLoc DL, SelectionDAG &DAG) const;
+ SDValue Chain, SDLoc DL, SelectionDAG &DAG,
+ CCState &State) const;
SDValue
LowerFormalArguments(SDValue Chain,
OpenPOWER on IntegriCloud