Lines Matching refs:ValueVT

159                                       MVT PartVT, EVT ValueVT, const Value *V,
170 unsigned NumParts, MVT PartVT, EVT ValueVT, const Value *V, in getCopyFromParts() argument
177 PartVT, ValueVT, CC)) in getCopyFromParts()
180 if (ValueVT.isVector()) in getCopyFromParts()
181 return getCopyFromPartsVector(DAG, DL, Parts, NumParts, PartVT, ValueVT, V, in getCopyFromParts()
189 if (ValueVT.isInteger()) { in getCopyFromParts()
191 unsigned ValueBits = ValueVT.getSizeInBits(); in getCopyFromParts()
197 ValueVT : EVT::getIntegerVT(*DAG.getContext(), RoundBits); in getCopyFromParts()
239 assert(ValueVT == EVT(MVT::ppcf128) && PartVT == MVT::f64 && in getCopyFromParts()
244 if (TLI.hasBigEndianPartOrdering(ValueVT, DAG.getDataLayout())) in getCopyFromParts()
246 Val = DAG.getNode(ISD::BUILD_PAIR, DL, ValueVT, Lo, Hi); in getCopyFromParts()
249 assert(ValueVT.isFloatingPoint() && PartVT.isInteger() && in getCopyFromParts()
251 EVT IntVT = EVT::getIntegerVT(*DAG.getContext(), ValueVT.getSizeInBits()); in getCopyFromParts()
262 if (PartEVT == ValueVT) in getCopyFromParts()
265 if (PartEVT.isInteger() && ValueVT.isFloatingPoint() && in getCopyFromParts()
266 ValueVT.bitsLT(PartEVT)) { in getCopyFromParts()
269 PartEVT = EVT::getIntegerVT(*DAG.getContext(), ValueVT.getSizeInBits()); in getCopyFromParts()
274 if (PartEVT.getSizeInBits() == ValueVT.getSizeInBits()) in getCopyFromParts()
275 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromParts()
278 if (PartEVT.isInteger() && ValueVT.isInteger()) { in getCopyFromParts()
279 if (ValueVT.bitsLT(PartEVT)) { in getCopyFromParts()
285 DAG.getValueType(ValueVT)); in getCopyFromParts()
286 return DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val); in getCopyFromParts()
288 return DAG.getNode(ISD::ANY_EXTEND, DL, ValueVT, Val); in getCopyFromParts()
291 if (PartEVT.isFloatingPoint() && ValueVT.isFloatingPoint()) { in getCopyFromParts()
293 if (ValueVT.bitsLT(Val.getValueType())) { in getCopyFromParts()
301 DAG.getVTList(ValueVT, MVT::Other), InChain, Val, in getCopyFromParts()
305 return DAG.getNode(ISD::FP_ROUND, DL, ValueVT, Val, NoChange); in getCopyFromParts()
308 return DAG.getNode(ISD::FP_EXTEND, DL, ValueVT, Val); in getCopyFromParts()
313 if (PartEVT == MVT::x86mmx && ValueVT.isInteger() && in getCopyFromParts()
314 ValueVT.bitsLT(PartEVT)) { in getCopyFromParts()
316 return DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val); in getCopyFromParts()
343 MVT PartVT, EVT ValueVT, const Value *V, in getCopyFromPartsVector() argument
346 assert(ValueVT.isVector() && "Not a vector value"); in getCopyFromPartsVector()
362 *DAG.getContext(), *CallConv, ValueVT, IntermediateVT, in getCopyFromPartsVector()
366 TLI.getVectorTypeBreakdown(*DAG.getContext(), ValueVT, IntermediateVT, in getCopyFromPartsVector()
414 if (PartEVT == ValueVT) in getCopyFromPartsVector()
419 if (ValueVT.getSizeInBits() == PartEVT.getSizeInBits()) in getCopyFromPartsVector()
420 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromPartsVector()
425 if (PartEVT.getVectorElementCount() != ValueVT.getVectorElementCount()) { in getCopyFromPartsVector()
427 ValueVT.getVectorElementCount().getKnownMinValue()) && in getCopyFromPartsVector()
429 ValueVT.getVectorElementCount().isScalable()) && in getCopyFromPartsVector()
433 ValueVT.getVectorElementCount()); in getCopyFromPartsVector()
436 if (PartEVT == ValueVT) in getCopyFromPartsVector()
438 if (PartEVT.isInteger() && ValueVT.isFloatingPoint()) in getCopyFromPartsVector()
439 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromPartsVector()
442 if (ValueVT.getSizeInBits() == PartEVT.getSizeInBits()) in getCopyFromPartsVector()
443 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromPartsVector()
447 return DAG.getAnyExtOrTrunc(Val, DL, ValueVT); in getCopyFromPartsVector()
452 if (PartEVT.getSizeInBits() == ValueVT.getSizeInBits() && in getCopyFromPartsVector()
453 TLI.isTypeLegal(ValueVT)) in getCopyFromPartsVector()
454 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromPartsVector()
456 if (ValueVT.getVectorNumElements() != 1) { in getCopyFromPartsVector()
459 if (ValueVT.getSizeInBits() == PartEVT.getSizeInBits()) { in getCopyFromPartsVector()
460 return DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyFromPartsVector()
461 } else if (ValueVT.bitsLT(PartEVT)) { in getCopyFromPartsVector()
462 const uint64_t ValueSize = ValueVT.getFixedSizeInBits(); in getCopyFromPartsVector()
466 return DAG.getBitcast(ValueVT, Val); in getCopyFromPartsVector()
471 return DAG.getUNDEF(ValueVT); in getCopyFromPartsVector()
475 EVT ValueSVT = ValueVT.getVectorElementType(); in getCopyFromPartsVector()
476 if (ValueVT.getVectorNumElements() == 1 && ValueSVT != PartEVT) { in getCopyFromPartsVector()
489 Val = ValueVT.isFloatingPoint() in getCopyFromPartsVector()
495 return DAG.getBuildVector(ValueVT, DL, Val); in getCopyFromPartsVector()
516 EVT ValueVT = Val.getValueType(); in getCopyToParts() local
519 if (ValueVT.isVector()) in getCopyToParts()
530 assert(!ValueVT.isVector() && "Vector case handled elsewhere"); in getCopyToParts()
532 if (PartEVT == ValueVT) { in getCopyToParts()
539 if (NumParts * PartBits > ValueVT.getSizeInBits()) { in getCopyToParts()
541 if (PartVT.isFloatingPoint() && ValueVT.isFloatingPoint()) { in getCopyToParts()
545 if (ValueVT.isFloatingPoint()) { in getCopyToParts()
548 ValueVT = EVT::getIntegerVT(*DAG.getContext(), ValueVT.getSizeInBits()); in getCopyToParts()
549 Val = DAG.getNode(ISD::BITCAST, DL, ValueVT, Val); in getCopyToParts()
552 ValueVT.isInteger() && in getCopyToParts()
554 ValueVT = EVT::getIntegerVT(*DAG.getContext(), NumParts * PartBits); in getCopyToParts()
555 Val = DAG.getNode(ExtendKind, DL, ValueVT, Val); in getCopyToParts()
559 } else if (PartBits == ValueVT.getSizeInBits()) { in getCopyToParts()
561 assert(NumParts == 1 && PartEVT != ValueVT); in getCopyToParts()
563 } else if (NumParts * PartBits < ValueVT.getSizeInBits()) { in getCopyToParts()
566 ValueVT.isInteger() && in getCopyToParts()
568 ValueVT = EVT::getIntegerVT(*DAG.getContext(), NumParts * PartBits); in getCopyToParts()
569 Val = DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val); in getCopyToParts()
575 ValueVT = Val.getValueType(); in getCopyToParts()
576 assert(NumParts * PartBits == ValueVT.getSizeInBits() && in getCopyToParts()
580 if (PartEVT != ValueVT) { in getCopyToParts()
593 assert(PartVT.isInteger() && ValueVT.isInteger() && in getCopyToParts()
598 SDValue OddVal = DAG.getNode(ISD::SRL, DL, ValueVT, Val, in getCopyToParts()
599 DAG.getShiftAmountConstant(RoundBits, ValueVT, DL)); in getCopyToParts()
609 ValueVT = EVT::getIntegerVT(*DAG.getContext(), NumParts * PartBits); in getCopyToParts()
610 Val = DAG.getNode(ISD::TRUNCATE, DL, ValueVT, Val); in getCopyToParts()
617 ValueVT.getSizeInBits()), in getCopyToParts()
648 EVT ValueVT = Val.getValueType(); in widenVectorToPartType() local
650 EVT ValueEVT = ValueVT.getVectorElementType(); in widenVectorToPartType()
652 ElementCount ValueNumElts = ValueVT.getVectorElementCount(); in widenVectorToPartType()
666 ValueVT.changeVectorElementType(MVT::f16), Val); in widenVectorToPartType()
694 EVT ValueVT = Val.getValueType(); in getCopyToPartsVector() local
695 assert(ValueVT.isVector() && "Not a vector"); in getCopyToPartsVector()
701 if (PartEVT == ValueVT) { in getCopyToPartsVector()
703 } else if (PartVT.getSizeInBits() == ValueVT.getSizeInBits()) { in getCopyToPartsVector()
710 ValueVT.getVectorElementType()) && in getCopyToPartsVector()
712 ValueVT.getVectorElementCount()) { in getCopyToPartsVector()
718 ValueVT.getVectorElementType() && in getCopyToPartsVector()
719 TLI.getTypeAction(*DAG.getContext(), ValueVT) == in getCopyToPartsVector()
723 EVT::getVectorVT(*DAG.getContext(), ValueVT.getVectorElementType(), in getCopyToPartsVector()
731 if (ValueVT.getVectorElementCount().isScalar() && in getCopyToPartsVector()
732 (!ValueVT.isFloatingPoint() || !PartVT.isInteger())) { in getCopyToPartsVector()
739 Val = DAG.getBitcast(ValueVT.getScalarType(), Val); in getCopyToPartsVector()
745 uint64_t ValueSize = ValueVT.getFixedSizeInBits(); in getCopyToPartsVector()
766 *DAG.getContext(), *CallConv, ValueVT, IntermediateVT, NumIntermediates, in getCopyToPartsVector()
770 TLI.getVectorTypeBreakdown(*DAG.getContext(), ValueVT, IntermediateVT, in getCopyToPartsVector()
778 assert(IntermediateVT.isScalableVector() == ValueVT.isScalableVector() && in getCopyToPartsVector()
791 if (ValueVT == BuiltVectorTy) { in getCopyToPartsVector()
793 } else if (ValueVT.getSizeInBits() == BuiltVectorTy.getSizeInBits()) { in getCopyToPartsVector()
798 ValueVT.getVectorElementType())) { in getCopyToPartsVector()
800 ValueVT = EVT::getVectorVT(*DAG.getContext(), in getCopyToPartsVector()
802 ValueVT.getVectorElementCount()); in getCopyToPartsVector()
803 Val = DAG.getNode(ISD::ANY_EXTEND, DL, ValueVT, Val); in getCopyToPartsVector()
860 for (EVT ValueVT : ValueVTs) { in RegsForValue() local
863 ? TLI.getNumRegistersForCallingConv(Context, *CC, ValueVT) in RegsForValue()
864 : TLI.getNumRegisters(Context, ValueVT); in RegsForValue()
867 ? TLI.getRegisterTypeForCallingConv(Context, *CC, ValueVT) in RegsForValue()
868 : TLI.getRegisterType(Context, ValueVT); in RegsForValue()
892 EVT ValueVT = ValueVTs[Value]; in getCopyFromRegs() local
956 RegisterVT, ValueVT, V, Chain, CallConv); in getCopyFromRegs()
9668 EVT ValueVT = OpInfo.ConstraintVT; in getRegistersForValue() local
9670 ValueVT = RegVT; in getRegistersForValue()
9703 OpInfo.AssignedRegs = RegsForValue(Regs, RegVT, ValueVT); in getRegistersForValue()