diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:32:43 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:32:43 +0000 | 
| commit | b7eb8e35e481a74962664b63dfb09483b200209a (patch) | |
| tree | 1937fb4a348458ce2d02ade03ac3bb0aa18d2fcd /lib/Target/Mips/MipsISelLowering.cpp | |
| parent | eb11fae6d08f479c0799db45860a98af528fa6e7 (diff) | |
Notes
Diffstat (limited to 'lib/Target/Mips/MipsISelLowering.cpp')
| -rw-r--r-- | lib/Target/Mips/MipsISelLowering.cpp | 6 | 
1 files changed, 4 insertions, 2 deletions
| diff --git a/lib/Target/Mips/MipsISelLowering.cpp b/lib/Target/Mips/MipsISelLowering.cpp index 9ffc38356b76..0677d378a115 100644 --- a/lib/Target/Mips/MipsISelLowering.cpp +++ b/lib/Target/Mips/MipsISelLowering.cpp @@ -111,6 +111,7 @@ static bool isShiftedMask(uint64_t I, uint64_t &Pos, uint64_t &Size) {  // The MIPS MSA ABI passes vector arguments in the integer register set.  // The number of integer registers used is dependant on the ABI used.  MVT MipsTargetLowering::getRegisterTypeForCallingConv(LLVMContext &Context, +                                                      CallingConv::ID CC,                                                        EVT VT) const {    if (VT.isVector()) {        if (Subtarget.isABI_O32()) { @@ -123,6 +124,7 @@ MVT MipsTargetLowering::getRegisterTypeForCallingConv(LLVMContext &Context,  }  unsigned MipsTargetLowering::getNumRegistersForCallingConv(LLVMContext &Context, +                                                           CallingConv::ID CC,                                                             EVT VT) const {    if (VT.isVector())      return std::max((VT.getSizeInBits() / (Subtarget.isABI_O32() ? 32 : 64)), @@ -131,10 +133,10 @@ unsigned MipsTargetLowering::getNumRegistersForCallingConv(LLVMContext &Context,  }  unsigned MipsTargetLowering::getVectorTypeBreakdownForCallingConv( -    LLVMContext &Context, EVT VT, EVT &IntermediateVT, +    LLVMContext &Context, CallingConv::ID CC, EVT VT, EVT &IntermediateVT,      unsigned &NumIntermediates, MVT &RegisterVT) const {    // Break down vector types to either 2 i64s or 4 i32s. -  RegisterVT = getRegisterTypeForCallingConv(Context, VT) ; +  RegisterVT = getRegisterTypeForCallingConv(Context, CC, VT);    IntermediateVT = RegisterVT;    NumIntermediates = VT.getSizeInBits() < RegisterVT.getSizeInBits()                           ? VT.getVectorNumElements() | 
