• Home
  • Raw
  • Download

Lines Matching refs:MVT

421   if (OpVT == MVT::f32) {  in getFPEXT()
422 if (RetVT == MVT::f64) in getFPEXT()
424 if (RetVT == MVT::f128) in getFPEXT()
426 } else if (OpVT == MVT::f64) { in getFPEXT()
427 if (RetVT == MVT::f128) in getFPEXT()
437 if (RetVT == MVT::f32) { in getFPROUND()
438 if (OpVT == MVT::f64) in getFPROUND()
440 if (OpVT == MVT::f80) in getFPROUND()
442 if (OpVT == MVT::f128) in getFPROUND()
444 if (OpVT == MVT::ppcf128) in getFPROUND()
446 } else if (RetVT == MVT::f64) { in getFPROUND()
447 if (OpVT == MVT::f80) in getFPROUND()
449 if (OpVT == MVT::f128) in getFPROUND()
451 if (OpVT == MVT::ppcf128) in getFPROUND()
461 if (OpVT == MVT::f32) { in getFPTOSINT()
462 if (RetVT == MVT::i8) in getFPTOSINT()
464 if (RetVT == MVT::i16) in getFPTOSINT()
466 if (RetVT == MVT::i32) in getFPTOSINT()
468 if (RetVT == MVT::i64) in getFPTOSINT()
470 if (RetVT == MVT::i128) in getFPTOSINT()
472 } else if (OpVT == MVT::f64) { in getFPTOSINT()
473 if (RetVT == MVT::i8) in getFPTOSINT()
475 if (RetVT == MVT::i16) in getFPTOSINT()
477 if (RetVT == MVT::i32) in getFPTOSINT()
479 if (RetVT == MVT::i64) in getFPTOSINT()
481 if (RetVT == MVT::i128) in getFPTOSINT()
483 } else if (OpVT == MVT::f80) { in getFPTOSINT()
484 if (RetVT == MVT::i32) in getFPTOSINT()
486 if (RetVT == MVT::i64) in getFPTOSINT()
488 if (RetVT == MVT::i128) in getFPTOSINT()
490 } else if (OpVT == MVT::f128) { in getFPTOSINT()
491 if (RetVT == MVT::i32) in getFPTOSINT()
493 if (RetVT == MVT::i64) in getFPTOSINT()
495 if (RetVT == MVT::i128) in getFPTOSINT()
497 } else if (OpVT == MVT::ppcf128) { in getFPTOSINT()
498 if (RetVT == MVT::i32) in getFPTOSINT()
500 if (RetVT == MVT::i64) in getFPTOSINT()
502 if (RetVT == MVT::i128) in getFPTOSINT()
511 if (OpVT == MVT::f32) { in getFPTOUINT()
512 if (RetVT == MVT::i8) in getFPTOUINT()
514 if (RetVT == MVT::i16) in getFPTOUINT()
516 if (RetVT == MVT::i32) in getFPTOUINT()
518 if (RetVT == MVT::i64) in getFPTOUINT()
520 if (RetVT == MVT::i128) in getFPTOUINT()
522 } else if (OpVT == MVT::f64) { in getFPTOUINT()
523 if (RetVT == MVT::i8) in getFPTOUINT()
525 if (RetVT == MVT::i16) in getFPTOUINT()
527 if (RetVT == MVT::i32) in getFPTOUINT()
529 if (RetVT == MVT::i64) in getFPTOUINT()
531 if (RetVT == MVT::i128) in getFPTOUINT()
533 } else if (OpVT == MVT::f80) { in getFPTOUINT()
534 if (RetVT == MVT::i32) in getFPTOUINT()
536 if (RetVT == MVT::i64) in getFPTOUINT()
538 if (RetVT == MVT::i128) in getFPTOUINT()
540 } else if (OpVT == MVT::f128) { in getFPTOUINT()
541 if (RetVT == MVT::i32) in getFPTOUINT()
543 if (RetVT == MVT::i64) in getFPTOUINT()
545 if (RetVT == MVT::i128) in getFPTOUINT()
547 } else if (OpVT == MVT::ppcf128) { in getFPTOUINT()
548 if (RetVT == MVT::i32) in getFPTOUINT()
550 if (RetVT == MVT::i64) in getFPTOUINT()
552 if (RetVT == MVT::i128) in getFPTOUINT()
561 if (OpVT == MVT::i32) { in getSINTTOFP()
562 if (RetVT == MVT::f32) in getSINTTOFP()
564 if (RetVT == MVT::f64) in getSINTTOFP()
566 if (RetVT == MVT::f80) in getSINTTOFP()
568 if (RetVT == MVT::f128) in getSINTTOFP()
570 if (RetVT == MVT::ppcf128) in getSINTTOFP()
572 } else if (OpVT == MVT::i64) { in getSINTTOFP()
573 if (RetVT == MVT::f32) in getSINTTOFP()
575 if (RetVT == MVT::f64) in getSINTTOFP()
577 if (RetVT == MVT::f80) in getSINTTOFP()
579 if (RetVT == MVT::f128) in getSINTTOFP()
581 if (RetVT == MVT::ppcf128) in getSINTTOFP()
583 } else if (OpVT == MVT::i128) { in getSINTTOFP()
584 if (RetVT == MVT::f32) in getSINTTOFP()
586 if (RetVT == MVT::f64) in getSINTTOFP()
588 if (RetVT == MVT::f80) in getSINTTOFP()
590 if (RetVT == MVT::f128) in getSINTTOFP()
592 if (RetVT == MVT::ppcf128) in getSINTTOFP()
601 if (OpVT == MVT::i32) { in getUINTTOFP()
602 if (RetVT == MVT::f32) in getUINTTOFP()
604 if (RetVT == MVT::f64) in getUINTTOFP()
606 if (RetVT == MVT::f80) in getUINTTOFP()
608 if (RetVT == MVT::f128) in getUINTTOFP()
610 if (RetVT == MVT::ppcf128) in getUINTTOFP()
612 } else if (OpVT == MVT::i64) { in getUINTTOFP()
613 if (RetVT == MVT::f32) in getUINTTOFP()
615 if (RetVT == MVT::f64) in getUINTTOFP()
617 if (RetVT == MVT::f80) in getUINTTOFP()
619 if (RetVT == MVT::f128) in getUINTTOFP()
621 if (RetVT == MVT::ppcf128) in getUINTTOFP()
623 } else if (OpVT == MVT::i128) { in getUINTTOFP()
624 if (RetVT == MVT::f32) in getUINTTOFP()
626 if (RetVT == MVT::f64) in getUINTTOFP()
628 if (RetVT == MVT::f80) in getUINTTOFP()
630 if (RetVT == MVT::f128) in getUINTTOFP()
632 if (RetVT == MVT::ppcf128) in getUINTTOFP()
722 memset(RegClassForVT, 0,MVT::LAST_VALUETYPE*sizeof(TargetRegisterClass*)); in initActions()
726 for (unsigned VT = 0; VT != (unsigned)MVT::LAST_VALUETYPE; ++VT) { in initActions()
730 setIndexedLoadAction(IM, (MVT::SimpleValueType)VT, Expand); in initActions()
731 setIndexedStoreAction(IM, (MVT::SimpleValueType)VT, Expand); in initActions()
736 (MVT::SimpleValueType)VT, Expand); in initActions()
739 setOperationAction(ISD::FGETSIGN, (MVT::SimpleValueType)VT, Expand); in initActions()
740 setOperationAction(ISD::CONCAT_VECTORS, (MVT::SimpleValueType)VT, Expand); in initActions()
743 setOperationAction(ISD::FROUND, (MVT::SimpleValueType)VT, Expand); in initActions()
746 if (VT >= MVT::FIRST_VECTOR_VALUETYPE && in initActions()
747 VT <= MVT::LAST_VECTOR_VALUETYPE) { in initActions()
748 setOperationAction(ISD::FCOPYSIGN, (MVT::SimpleValueType)VT, Expand); in initActions()
750 (MVT::SimpleValueType)VT, Expand); in initActions()
752 (MVT::SimpleValueType)VT, Expand); in initActions()
754 (MVT::SimpleValueType)VT, Expand); in initActions()
759 setOperationAction(ISD::PREFETCH, MVT::Other, Expand); in initActions()
764 setOperationAction(ISD::ConstantFP, MVT::f16, Expand); in initActions()
765 setOperationAction(ISD::ConstantFP, MVT::f32, Expand); in initActions()
766 setOperationAction(ISD::ConstantFP, MVT::f64, Expand); in initActions()
767 setOperationAction(ISD::ConstantFP, MVT::f80, Expand); in initActions()
768 setOperationAction(ISD::ConstantFP, MVT::f128, Expand); in initActions()
771 setOperationAction(ISD::FLOG , MVT::f16, Expand); in initActions()
772 setOperationAction(ISD::FLOG2, MVT::f16, Expand); in initActions()
773 setOperationAction(ISD::FLOG10, MVT::f16, Expand); in initActions()
774 setOperationAction(ISD::FEXP , MVT::f16, Expand); in initActions()
775 setOperationAction(ISD::FEXP2, MVT::f16, Expand); in initActions()
776 setOperationAction(ISD::FFLOOR, MVT::f16, Expand); in initActions()
777 setOperationAction(ISD::FNEARBYINT, MVT::f16, Expand); in initActions()
778 setOperationAction(ISD::FCEIL, MVT::f16, Expand); in initActions()
779 setOperationAction(ISD::FRINT, MVT::f16, Expand); in initActions()
780 setOperationAction(ISD::FTRUNC, MVT::f16, Expand); in initActions()
781 setOperationAction(ISD::FROUND, MVT::f16, Expand); in initActions()
782 setOperationAction(ISD::FLOG , MVT::f32, Expand); in initActions()
783 setOperationAction(ISD::FLOG2, MVT::f32, Expand); in initActions()
784 setOperationAction(ISD::FLOG10, MVT::f32, Expand); in initActions()
785 setOperationAction(ISD::FEXP , MVT::f32, Expand); in initActions()
786 setOperationAction(ISD::FEXP2, MVT::f32, Expand); in initActions()
787 setOperationAction(ISD::FFLOOR, MVT::f32, Expand); in initActions()
788 setOperationAction(ISD::FNEARBYINT, MVT::f32, Expand); in initActions()
789 setOperationAction(ISD::FCEIL, MVT::f32, Expand); in initActions()
790 setOperationAction(ISD::FRINT, MVT::f32, Expand); in initActions()
791 setOperationAction(ISD::FTRUNC, MVT::f32, Expand); in initActions()
792 setOperationAction(ISD::FROUND, MVT::f32, Expand); in initActions()
793 setOperationAction(ISD::FLOG , MVT::f64, Expand); in initActions()
794 setOperationAction(ISD::FLOG2, MVT::f64, Expand); in initActions()
795 setOperationAction(ISD::FLOG10, MVT::f64, Expand); in initActions()
796 setOperationAction(ISD::FEXP , MVT::f64, Expand); in initActions()
797 setOperationAction(ISD::FEXP2, MVT::f64, Expand); in initActions()
798 setOperationAction(ISD::FFLOOR, MVT::f64, Expand); in initActions()
799 setOperationAction(ISD::FNEARBYINT, MVT::f64, Expand); in initActions()
800 setOperationAction(ISD::FCEIL, MVT::f64, Expand); in initActions()
801 setOperationAction(ISD::FRINT, MVT::f64, Expand); in initActions()
802 setOperationAction(ISD::FTRUNC, MVT::f64, Expand); in initActions()
803 setOperationAction(ISD::FROUND, MVT::f64, Expand); in initActions()
804 setOperationAction(ISD::FLOG , MVT::f128, Expand); in initActions()
805 setOperationAction(ISD::FLOG2, MVT::f128, Expand); in initActions()
806 setOperationAction(ISD::FLOG10, MVT::f128, Expand); in initActions()
807 setOperationAction(ISD::FEXP , MVT::f128, Expand); in initActions()
808 setOperationAction(ISD::FEXP2, MVT::f128, Expand); in initActions()
809 setOperationAction(ISD::FFLOOR, MVT::f128, Expand); in initActions()
810 setOperationAction(ISD::FNEARBYINT, MVT::f128, Expand); in initActions()
811 setOperationAction(ISD::FCEIL, MVT::f128, Expand); in initActions()
812 setOperationAction(ISD::FRINT, MVT::f128, Expand); in initActions()
813 setOperationAction(ISD::FTRUNC, MVT::f128, Expand); in initActions()
814 setOperationAction(ISD::FROUND, MVT::f128, Expand); in initActions()
817 setOperationAction(ISD::TRAP, MVT::Other, Expand); in initActions()
822 setOperationAction(ISD::DEBUGTRAP, MVT::Other, Expand); in initActions()
825 MVT TargetLoweringBase::getPointerTy(uint32_t AS) const { in getPointerTy()
826 return MVT::getIntegerVT(getPointerSizeInBits(AS)); in getPointerTy()
838 MVT TargetLoweringBase::getScalarShiftAmountTy(EVT LHSTy) const { in getScalarShiftAmountTy()
839 return MVT::getIntegerVT(8*DL->getPointerSize(0)); in getScalarShiftAmountTy()
867 static unsigned getVectorTypeBreakdownMVT(MVT VT, MVT &IntermediateVT, in getVectorTypeBreakdownMVT()
869 MVT &RegisterVT, in getVectorTypeBreakdownMVT()
873 MVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdownMVT()
886 while (NumElts > 1 && !TLI->isTypeLegal(MVT::getVectorVT(EltTy, NumElts))) { in getVectorTypeBreakdownMVT()
893 MVT NewVT = MVT::getVectorVT(EltTy, NumElts); in getVectorTypeBreakdownMVT()
904 MVT DestVT = TLI->getRegisterType(NewVT); in getVectorTypeBreakdownMVT()
980 TargetLoweringBase::findRepresentativeClass(MVT VT) const { in findRepresentativeClass()
1008 assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE && in computeRegisterProperties()
1012 for (unsigned i = 0; i != MVT::LAST_VALUETYPE; ++i) { in computeRegisterProperties()
1014 RegisterTypeForVT[i] = TransformToType[i] = (MVT::SimpleValueType)i; in computeRegisterProperties()
1017 NumRegistersForVT[MVT::isVoid] = 0; in computeRegisterProperties()
1020 unsigned LargestIntReg = MVT::LAST_INTEGER_VALUETYPE; in computeRegisterProperties()
1022 assert(LargestIntReg != MVT::i1 && "No integer registers defined!"); in computeRegisterProperties()
1027 ExpandedReg <= MVT::LAST_INTEGER_VALUETYPE; ++ExpandedReg) { in computeRegisterProperties()
1029 RegisterTypeForVT[ExpandedReg] = (MVT::SimpleValueType)LargestIntReg; in computeRegisterProperties()
1030 TransformToType[ExpandedReg] = (MVT::SimpleValueType)(ExpandedReg - 1); in computeRegisterProperties()
1031 ValueTypeActions.setTypeAction((MVT::SimpleValueType)ExpandedReg, in computeRegisterProperties()
1039 IntReg >= (unsigned)MVT::i1; --IntReg) { in computeRegisterProperties()
1040 MVT IVT = (MVT::SimpleValueType)IntReg; in computeRegisterProperties()
1045 (const MVT::SimpleValueType)LegalIntReg; in computeRegisterProperties()
1051 if (!isTypeLegal(MVT::ppcf128)) { in computeRegisterProperties()
1052 NumRegistersForVT[MVT::ppcf128] = 2*NumRegistersForVT[MVT::f64]; in computeRegisterProperties()
1053 RegisterTypeForVT[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1054 TransformToType[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1055 ValueTypeActions.setTypeAction(MVT::ppcf128, TypeExpandFloat); in computeRegisterProperties()
1060 if (!isTypeLegal(MVT::f128)) { in computeRegisterProperties()
1061 NumRegistersForVT[MVT::f128] = NumRegistersForVT[MVT::i128]; in computeRegisterProperties()
1062 RegisterTypeForVT[MVT::f128] = RegisterTypeForVT[MVT::i128]; in computeRegisterProperties()
1063 TransformToType[MVT::f128] = MVT::i128; in computeRegisterProperties()
1064 ValueTypeActions.setTypeAction(MVT::f128, TypeSoftenFloat); in computeRegisterProperties()
1069 if (!isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1070 NumRegistersForVT[MVT::f64] = NumRegistersForVT[MVT::i64]; in computeRegisterProperties()
1071 RegisterTypeForVT[MVT::f64] = RegisterTypeForVT[MVT::i64]; in computeRegisterProperties()
1072 TransformToType[MVT::f64] = MVT::i64; in computeRegisterProperties()
1073 ValueTypeActions.setTypeAction(MVT::f64, TypeSoftenFloat); in computeRegisterProperties()
1078 if (!isTypeLegal(MVT::f32)) { in computeRegisterProperties()
1079 if (isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1080 NumRegistersForVT[MVT::f32] = NumRegistersForVT[MVT::f64]; in computeRegisterProperties()
1081 RegisterTypeForVT[MVT::f32] = RegisterTypeForVT[MVT::f64]; in computeRegisterProperties()
1082 TransformToType[MVT::f32] = MVT::f64; in computeRegisterProperties()
1083 ValueTypeActions.setTypeAction(MVT::f32, TypePromoteInteger); in computeRegisterProperties()
1085 NumRegistersForVT[MVT::f32] = NumRegistersForVT[MVT::i32]; in computeRegisterProperties()
1086 RegisterTypeForVT[MVT::f32] = RegisterTypeForVT[MVT::i32]; in computeRegisterProperties()
1087 TransformToType[MVT::f32] = MVT::i32; in computeRegisterProperties()
1088 ValueTypeActions.setTypeAction(MVT::f32, TypeSoftenFloat); in computeRegisterProperties()
1093 for (unsigned i = MVT::FIRST_VECTOR_VALUETYPE; in computeRegisterProperties()
1094 i <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++i) { in computeRegisterProperties()
1095 MVT VT = (MVT::SimpleValueType) i; in computeRegisterProperties()
1099 MVT EltVT = VT.getVectorElementType(); in computeRegisterProperties()
1107 for (unsigned nVT = i + 1; nVT <= MVT::LAST_VECTOR_VALUETYPE; ++nVT) { in computeRegisterProperties()
1108 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1127 for (unsigned nVT = i + 1; nVT <= MVT::LAST_VECTOR_VALUETYPE; ++nVT) { in computeRegisterProperties()
1128 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1144 MVT IntermediateVT; in computeRegisterProperties()
1145 MVT RegisterVT; in computeRegisterProperties()
1151 MVT NVT = VT.getPow2VectorType(); in computeRegisterProperties()
1154 TransformToType[i] = MVT::Other; in computeRegisterProperties()
1175 for (unsigned i = 0; i != MVT::LAST_VALUETYPE; ++i) { in computeRegisterProperties()
1178 std::tie(RRC, Cost) = findRepresentativeClass((MVT::SimpleValueType)i); in computeRegisterProperties()
1189 MVT::SimpleValueType TargetLoweringBase::getCmpLibcallReturnType() const { in getCmpLibcallReturnType()
1190 return MVT::i32; // return the default value in getCmpLibcallReturnType()
1205 MVT &RegisterVT) const { in getVectorTypeBreakdown()
1251 MVT DestVT = getRegisterType(Context, NewVT); in getVectorTypeBreakdown()
1293 MVT MinVT = TLI.getRegisterType(ReturnType->getContext(), MVT::i32); in GetReturnInfo()
1299 MVT PartVT = TLI.getRegisterType(ReturnType->getContext(), VT); in GetReturnInfo()
1399 std::pair<unsigned, MVT>