diff options
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index fda432b42d8..6c64f86abf5 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -2722,7 +2722,7 @@ enum StructReturnType { StackStructReturn }; static StructReturnType -callIsStructReturn(const SmallVectorImpl<ISD::OutputArg> &Outs, bool IsMCU) { +callIsStructReturn(ArrayRef<ISD::OutputArg> Outs, bool IsMCU) { if (Outs.empty()) return NotStructReturn; @@ -2736,7 +2736,7 @@ callIsStructReturn(const SmallVectorImpl<ISD::OutputArg> &Outs, bool IsMCU) { /// Determines whether a function uses struct return semantics. static StructReturnType -argsAreStructReturn(const SmallVectorImpl<ISD::InputArg> &Ins, bool IsMCU) { +argsAreStructReturn(ArrayRef<ISD::InputArg> Ins, bool IsMCU) { if (Ins.empty()) return NotStructReturn; @@ -2984,7 +2984,7 @@ static ArrayRef<MCPhysReg> get64BitArgumentXMMs(MachineFunction &MF, } #ifndef NDEBUG -static bool isSortedByValueNo(const SmallVectorImpl<CCValAssign> &ArgLocs) { +static bool isSortedByValueNo(ArrayRef<CCValAssign> ArgLocs) { return std::is_sorted(ArgLocs.begin(), ArgLocs.end(), [](const CCValAssign &A, const CCValAssign &B) -> bool { return A.getValNo() < B.getValNo(); @@ -29967,7 +29967,7 @@ static SDValue combineX86ShuffleChain(ArrayRef<SDValue> Inputs, SDValue Root, // Attempt to constant fold all of the constant source ops. // Returns true if the entire shuffle is folded to a constant. // TODO: Extend this to merge multiple constant Ops and update the mask. -static SDValue combineX86ShufflesConstants(const SmallVectorImpl<SDValue> &Ops, +static SDValue combineX86ShufflesConstants(ArrayRef<SDValue> Ops, ArrayRef<int> Mask, SDValue Root, bool HasVariableMask, SelectionDAG &DAG, |