Lines Matching refs:MVT

223     VT == MVT::f32 ? Call_F32 :  in getFPLibCall()
224 VT == MVT::f64 ? Call_F64 : in getFPLibCall()
225 VT == MVT::f80 ? Call_F80 : in getFPLibCall()
226 VT == MVT::f128 ? Call_F128 : in getFPLibCall()
227 VT == MVT::ppcf128 ? Call_PPCF128 : in getFPLibCall()
234 if (OpVT == MVT::f16) { in getFPEXT()
235 if (RetVT == MVT::f32) in getFPEXT()
237 if (RetVT == MVT::f64) in getFPEXT()
239 if (RetVT == MVT::f128) in getFPEXT()
241 } else if (OpVT == MVT::f32) { in getFPEXT()
242 if (RetVT == MVT::f64) in getFPEXT()
244 if (RetVT == MVT::f128) in getFPEXT()
246 if (RetVT == MVT::ppcf128) in getFPEXT()
248 } else if (OpVT == MVT::f64) { in getFPEXT()
249 if (RetVT == MVT::f128) in getFPEXT()
251 else if (RetVT == MVT::ppcf128) in getFPEXT()
253 } else if (OpVT == MVT::f80) { in getFPEXT()
254 if (RetVT == MVT::f128) in getFPEXT()
264 if (RetVT == MVT::f16) { in getFPROUND()
265 if (OpVT == MVT::f32) in getFPROUND()
267 if (OpVT == MVT::f64) in getFPROUND()
269 if (OpVT == MVT::f80) in getFPROUND()
271 if (OpVT == MVT::f128) in getFPROUND()
273 if (OpVT == MVT::ppcf128) in getFPROUND()
275 } else if (RetVT == MVT::f32) { in getFPROUND()
276 if (OpVT == MVT::f64) in getFPROUND()
278 if (OpVT == MVT::f80) in getFPROUND()
280 if (OpVT == MVT::f128) in getFPROUND()
282 if (OpVT == MVT::ppcf128) in getFPROUND()
284 } else if (RetVT == MVT::f64) { in getFPROUND()
285 if (OpVT == MVT::f80) in getFPROUND()
287 if (OpVT == MVT::f128) in getFPROUND()
289 if (OpVT == MVT::ppcf128) in getFPROUND()
291 } else if (RetVT == MVT::f80) { in getFPROUND()
292 if (OpVT == MVT::f128) in getFPROUND()
302 if (OpVT == MVT::f16) { in getFPTOSINT()
303 if (RetVT == MVT::i32) in getFPTOSINT()
305 if (RetVT == MVT::i64) in getFPTOSINT()
307 if (RetVT == MVT::i128) in getFPTOSINT()
309 } else if (OpVT == MVT::f32) { in getFPTOSINT()
310 if (RetVT == MVT::i32) in getFPTOSINT()
312 if (RetVT == MVT::i64) in getFPTOSINT()
314 if (RetVT == MVT::i128) in getFPTOSINT()
316 } else if (OpVT == MVT::f64) { in getFPTOSINT()
317 if (RetVT == MVT::i32) in getFPTOSINT()
319 if (RetVT == MVT::i64) in getFPTOSINT()
321 if (RetVT == MVT::i128) in getFPTOSINT()
323 } else if (OpVT == MVT::f80) { in getFPTOSINT()
324 if (RetVT == MVT::i32) in getFPTOSINT()
326 if (RetVT == MVT::i64) in getFPTOSINT()
328 if (RetVT == MVT::i128) in getFPTOSINT()
330 } else if (OpVT == MVT::f128) { in getFPTOSINT()
331 if (RetVT == MVT::i32) in getFPTOSINT()
333 if (RetVT == MVT::i64) in getFPTOSINT()
335 if (RetVT == MVT::i128) in getFPTOSINT()
337 } else if (OpVT == MVT::ppcf128) { in getFPTOSINT()
338 if (RetVT == MVT::i32) in getFPTOSINT()
340 if (RetVT == MVT::i64) in getFPTOSINT()
342 if (RetVT == MVT::i128) in getFPTOSINT()
351 if (OpVT == MVT::f16) { in getFPTOUINT()
352 if (RetVT == MVT::i32) in getFPTOUINT()
354 if (RetVT == MVT::i64) in getFPTOUINT()
356 if (RetVT == MVT::i128) in getFPTOUINT()
358 } else if (OpVT == MVT::f32) { in getFPTOUINT()
359 if (RetVT == MVT::i32) in getFPTOUINT()
361 if (RetVT == MVT::i64) in getFPTOUINT()
363 if (RetVT == MVT::i128) in getFPTOUINT()
365 } else if (OpVT == MVT::f64) { in getFPTOUINT()
366 if (RetVT == MVT::i32) in getFPTOUINT()
368 if (RetVT == MVT::i64) in getFPTOUINT()
370 if (RetVT == MVT::i128) in getFPTOUINT()
372 } else if (OpVT == MVT::f80) { in getFPTOUINT()
373 if (RetVT == MVT::i32) in getFPTOUINT()
375 if (RetVT == MVT::i64) in getFPTOUINT()
377 if (RetVT == MVT::i128) in getFPTOUINT()
379 } else if (OpVT == MVT::f128) { in getFPTOUINT()
380 if (RetVT == MVT::i32) in getFPTOUINT()
382 if (RetVT == MVT::i64) in getFPTOUINT()
384 if (RetVT == MVT::i128) in getFPTOUINT()
386 } else if (OpVT == MVT::ppcf128) { in getFPTOUINT()
387 if (RetVT == MVT::i32) in getFPTOUINT()
389 if (RetVT == MVT::i64) in getFPTOUINT()
391 if (RetVT == MVT::i128) in getFPTOUINT()
400 if (OpVT == MVT::i32) { in getSINTTOFP()
401 if (RetVT == MVT::f16) in getSINTTOFP()
403 if (RetVT == MVT::f32) in getSINTTOFP()
405 if (RetVT == MVT::f64) in getSINTTOFP()
407 if (RetVT == MVT::f80) in getSINTTOFP()
409 if (RetVT == MVT::f128) in getSINTTOFP()
411 if (RetVT == MVT::ppcf128) in getSINTTOFP()
413 } else if (OpVT == MVT::i64) { in getSINTTOFP()
414 if (RetVT == MVT::f16) in getSINTTOFP()
416 if (RetVT == MVT::f32) in getSINTTOFP()
418 if (RetVT == MVT::f64) in getSINTTOFP()
420 if (RetVT == MVT::f80) in getSINTTOFP()
422 if (RetVT == MVT::f128) in getSINTTOFP()
424 if (RetVT == MVT::ppcf128) in getSINTTOFP()
426 } else if (OpVT == MVT::i128) { in getSINTTOFP()
427 if (RetVT == MVT::f16) in getSINTTOFP()
429 if (RetVT == MVT::f32) in getSINTTOFP()
431 if (RetVT == MVT::f64) in getSINTTOFP()
433 if (RetVT == MVT::f80) in getSINTTOFP()
435 if (RetVT == MVT::f128) in getSINTTOFP()
437 if (RetVT == MVT::ppcf128) in getSINTTOFP()
446 if (OpVT == MVT::i32) { in getUINTTOFP()
447 if (RetVT == MVT::f16) in getUINTTOFP()
449 if (RetVT == MVT::f32) in getUINTTOFP()
451 if (RetVT == MVT::f64) in getUINTTOFP()
453 if (RetVT == MVT::f80) in getUINTTOFP()
455 if (RetVT == MVT::f128) in getUINTTOFP()
457 if (RetVT == MVT::ppcf128) in getUINTTOFP()
459 } else if (OpVT == MVT::i64) { in getUINTTOFP()
460 if (RetVT == MVT::f16) in getUINTTOFP()
462 if (RetVT == MVT::f32) in getUINTTOFP()
464 if (RetVT == MVT::f64) in getUINTTOFP()
466 if (RetVT == MVT::f80) in getUINTTOFP()
468 if (RetVT == MVT::f128) in getUINTTOFP()
470 if (RetVT == MVT::ppcf128) in getUINTTOFP()
472 } else if (OpVT == MVT::i128) { in getUINTTOFP()
473 if (RetVT == MVT::f16) in getUINTTOFP()
475 if (RetVT == MVT::f32) in getUINTTOFP()
477 if (RetVT == MVT::f64) in getUINTTOFP()
479 if (RetVT == MVT::f80) in getUINTTOFP()
481 if (RetVT == MVT::f128) in getUINTTOFP()
483 if (RetVT == MVT::ppcf128) in getUINTTOFP()
495 MVT VT) { in getOUTLINE_ATOMIC()
498 case MVT::i8: in getOUTLINE_ATOMIC()
501 case MVT::i16: in getOUTLINE_ATOMIC()
504 case MVT::i32: in getOUTLINE_ATOMIC()
507 case MVT::i64: in getOUTLINE_ATOMIC()
510 case MVT::i128: in getOUTLINE_ATOMIC()
571 RTLIB::Libcall RTLIB::getSYNC(unsigned Opc, MVT VT) { in getSYNC()
577 case MVT::i8: \ in getSYNC()
579 case MVT::i16: \ in getSYNC()
581 case MVT::i32: \ in getSYNC()
583 case MVT::i64: \ in getSYNC()
585 case MVT::i128: \ in getSYNC()
739 for (MVT VT : MVT::fp_valuetypes()) { in initActions()
740 MVT IntVT = MVT::getIntegerVT(VT.getFixedSizeInBits()); in initActions()
748 for (MVT VT : MVT::all_valuetypes()) { in initActions()
872 setOperationAction(ISD::PREFETCH, MVT::Other, Expand); in initActions()
875 setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Expand); in initActions()
880 setOperationAction(ISD::ConstantFP, MVT::f16, Expand); in initActions()
881 setOperationAction(ISD::ConstantFP, MVT::f32, Expand); in initActions()
882 setOperationAction(ISD::ConstantFP, MVT::f64, Expand); in initActions()
883 setOperationAction(ISD::ConstantFP, MVT::f80, Expand); in initActions()
884 setOperationAction(ISD::ConstantFP, MVT::f128, Expand); in initActions()
887 for (MVT VT : {MVT::f32, MVT::f64, MVT::f128}) { in initActions()
908 setOperationAction(ISD::TRAP, MVT::Other, Expand); in initActions()
912 setOperationAction(ISD::DEBUGTRAP, MVT::Other, Expand); in initActions()
914 setOperationAction(ISD::UBSANTRAP, MVT::Other, Expand); in initActions()
917 MVT TargetLoweringBase::getScalarShiftAmountTy(const DataLayout &DL, in getScalarShiftAmountTy()
919 return MVT::getIntegerVT(DL.getPointerSizeInBits(0)); in getScalarShiftAmountTy()
959 MVT SVT = VT.getSimpleVT(); in getTypeConversion()
961 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion()
1048 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
1050 if (NVT != MVT() && ValueTypeActions.getTypeAction(NVT) == TypeLegal) in getTypeConversion()
1071 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
1072 if (LargerVector == MVT()) in getTypeConversion()
1095 static unsigned getVectorTypeBreakdownMVT(MVT VT, MVT &IntermediateVT, in getVectorTypeBreakdownMVT()
1097 MVT &RegisterVT, in getVectorTypeBreakdownMVT()
1101 MVT EltTy = VT.getVectorElementType(); in getVectorTypeBreakdownMVT()
1123 !TLI->isTypeLegal(MVT::getVectorVT(EltTy, EC))) { in getVectorTypeBreakdownMVT()
1130 MVT NewVT = MVT::getVectorVT(EltTy, EC); in getVectorTypeBreakdownMVT()
1141 MVT DestVT = TLI->getRegisterType(NewVT); in getVectorTypeBreakdownMVT()
1155 for (auto I = TRI.legalclasstypes_begin(RC); *I != MVT::Other; ++I) in isLegalRC()
1258 MVT VT) const { in findRepresentativeClass()
1286 static_assert(MVT::VALUETYPE_SIZE <= MVT::MAX_ALLOWED_VALUETYPE, in computeRegisterProperties()
1290 for (unsigned i = 0; i != MVT::VALUETYPE_SIZE; ++i) { in computeRegisterProperties()
1292 RegisterTypeForVT[i] = TransformToType[i] = (MVT::SimpleValueType)i; in computeRegisterProperties()
1295 NumRegistersForVT[MVT::isVoid] = 0; in computeRegisterProperties()
1298 unsigned LargestIntReg = MVT::LAST_INTEGER_VALUETYPE; in computeRegisterProperties()
1300 assert(LargestIntReg != MVT::i1 && "No integer registers defined!"); in computeRegisterProperties()
1305 ExpandedReg <= MVT::LAST_INTEGER_VALUETYPE; ++ExpandedReg) { in computeRegisterProperties()
1307 RegisterTypeForVT[ExpandedReg] = (MVT::SimpleValueType)LargestIntReg; in computeRegisterProperties()
1308 TransformToType[ExpandedReg] = (MVT::SimpleValueType)(ExpandedReg - 1); in computeRegisterProperties()
1309 ValueTypeActions.setTypeAction((MVT::SimpleValueType)ExpandedReg, in computeRegisterProperties()
1317 IntReg >= (unsigned)MVT::i1; --IntReg) { in computeRegisterProperties()
1318 MVT IVT = (MVT::SimpleValueType)IntReg; in computeRegisterProperties()
1323 (MVT::SimpleValueType)LegalIntReg; in computeRegisterProperties()
1329 if (!isTypeLegal(MVT::ppcf128)) { in computeRegisterProperties()
1330 if (isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1331 NumRegistersForVT[MVT::ppcf128] = 2*NumRegistersForVT[MVT::f64]; in computeRegisterProperties()
1332 RegisterTypeForVT[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1333 TransformToType[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1334 ValueTypeActions.setTypeAction(MVT::ppcf128, TypeExpandFloat); in computeRegisterProperties()
1336 NumRegistersForVT[MVT::ppcf128] = NumRegistersForVT[MVT::i128]; in computeRegisterProperties()
1337 RegisterTypeForVT[MVT::ppcf128] = RegisterTypeForVT[MVT::i128]; in computeRegisterProperties()
1338 TransformToType[MVT::ppcf128] = MVT::i128; in computeRegisterProperties()
1339 ValueTypeActions.setTypeAction(MVT::ppcf128, TypeSoftenFloat); in computeRegisterProperties()
1345 if (!isTypeLegal(MVT::f128)) { in computeRegisterProperties()
1346 NumRegistersForVT[MVT::f128] = NumRegistersForVT[MVT::i128]; in computeRegisterProperties()
1347 RegisterTypeForVT[MVT::f128] = RegisterTypeForVT[MVT::i128]; in computeRegisterProperties()
1348 TransformToType[MVT::f128] = MVT::i128; in computeRegisterProperties()
1349 ValueTypeActions.setTypeAction(MVT::f128, TypeSoftenFloat); in computeRegisterProperties()
1354 if (!isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1355 NumRegistersForVT[MVT::f64] = NumRegistersForVT[MVT::i64]; in computeRegisterProperties()
1356 RegisterTypeForVT[MVT::f64] = RegisterTypeForVT[MVT::i64]; in computeRegisterProperties()
1357 TransformToType[MVT::f64] = MVT::i64; in computeRegisterProperties()
1358 ValueTypeActions.setTypeAction(MVT::f64, TypeSoftenFloat); in computeRegisterProperties()
1363 if (!isTypeLegal(MVT::f32)) { in computeRegisterProperties()
1364 NumRegistersForVT[MVT::f32] = NumRegistersForVT[MVT::i32]; in computeRegisterProperties()
1365 RegisterTypeForVT[MVT::f32] = RegisterTypeForVT[MVT::i32]; in computeRegisterProperties()
1366 TransformToType[MVT::f32] = MVT::i32; in computeRegisterProperties()
1367 ValueTypeActions.setTypeAction(MVT::f32, TypeSoftenFloat); in computeRegisterProperties()
1373 if (!isTypeLegal(MVT::f16)) { in computeRegisterProperties()
1376 NumRegistersForVT[MVT::f16] = NumRegistersForVT[MVT::i16]; in computeRegisterProperties()
1377 RegisterTypeForVT[MVT::f16] = RegisterTypeForVT[MVT::i16]; in computeRegisterProperties()
1378 TransformToType[MVT::f16] = MVT::f32; in computeRegisterProperties()
1379 ValueTypeActions.setTypeAction(MVT::f16, TypeSoftPromoteHalf); in computeRegisterProperties()
1381 NumRegistersForVT[MVT::f16] = NumRegistersForVT[MVT::f32]; in computeRegisterProperties()
1382 RegisterTypeForVT[MVT::f16] = RegisterTypeForVT[MVT::f32]; in computeRegisterProperties()
1383 TransformToType[MVT::f16] = MVT::f32; in computeRegisterProperties()
1384 ValueTypeActions.setTypeAction(MVT::f16, TypePromoteFloat); in computeRegisterProperties()
1389 for (unsigned i = MVT::FIRST_VECTOR_VALUETYPE; in computeRegisterProperties()
1390 i <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++i) { in computeRegisterProperties()
1391 MVT VT = (MVT::SimpleValueType) i; in computeRegisterProperties()
1395 MVT EltVT = VT.getVectorElementType(); in computeRegisterProperties()
1402 MVT::SimpleValueType EndVT = IsScalable ? in computeRegisterProperties()
1403 MVT::LAST_INTEGER_SCALABLE_VECTOR_VALUETYPE : in computeRegisterProperties()
1404 MVT::LAST_INTEGER_FIXEDLEN_VECTOR_VALUETYPE; in computeRegisterProperties()
1408 (MVT::SimpleValueType)nVT <= EndVT; ++nVT) { in computeRegisterProperties()
1409 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1430 for (unsigned nVT = i + 1; nVT <= MVT::LAST_VECTOR_VALUETYPE; ++nVT) { in computeRegisterProperties()
1431 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1449 MVT NVT = VT.getPow2VectorType(); in computeRegisterProperties()
1462 MVT IntermediateVT; in computeRegisterProperties()
1463 MVT RegisterVT; in computeRegisterProperties()
1472 MVT NVT = VT.getPow2VectorType(); in computeRegisterProperties()
1475 TransformToType[i] = MVT::Other; in computeRegisterProperties()
1502 for (unsigned i = 0; i != MVT::VALUETYPE_SIZE; ++i) { in computeRegisterProperties()
1505 std::tie(RRC, Cost) = findRepresentativeClass(TRI, (MVT::SimpleValueType)i); in computeRegisterProperties()
1517 MVT::SimpleValueType TargetLoweringBase::getCmpLibcallReturnType() const { in getCmpLibcallReturnType()
1518 return MVT::i32; // return the default value in getCmpLibcallReturnType()
1532 MVT &RegisterVT) const { in getVectorTypeBreakdown()
1605 MVT DestVT = getRegisterType(Context, NewVT); in getVectorTypeBreakdown()
1670 MVT MinVT = TLI.getRegisterType(ReturnType->getContext(), MVT::i32); in GetReturnInfo()
1677 MVT PartVT = in GetReturnInfo()
1839 std::pair<InstructionCost, MVT>
1853 return std::make_pair(InstructionCost::getInvalid(), MVT::getVT(Ty)); in getTypeLegalizationCost()
2045 if (VT.getScalarType() == MVT::f64) { in getReciprocalOpName()
2048 assert(VT.getScalarType() == MVT::f32 && in getReciprocalOpName()