Lines Matching refs:MVT
181 if (OpVT == MVT::f16) { in getFPEXT()
182 if (RetVT == MVT::f32) in getFPEXT()
184 } else if (OpVT == MVT::f32) { in getFPEXT()
185 if (RetVT == MVT::f64) in getFPEXT()
187 if (RetVT == MVT::f128) in getFPEXT()
189 if (RetVT == MVT::ppcf128) in getFPEXT()
191 } else if (OpVT == MVT::f64) { in getFPEXT()
192 if (RetVT == MVT::f128) in getFPEXT()
194 else if (RetVT == MVT::ppcf128) in getFPEXT()
196 } else if (OpVT == MVT::f80) { in getFPEXT()
197 if (RetVT == MVT::f128) in getFPEXT()
207 if (RetVT == MVT::f16) { in getFPROUND()
208 if (OpVT == MVT::f32) in getFPROUND()
210 if (OpVT == MVT::f64) in getFPROUND()
212 if (OpVT == MVT::f80) in getFPROUND()
214 if (OpVT == MVT::f128) in getFPROUND()
216 if (OpVT == MVT::ppcf128) in getFPROUND()
218 } else if (RetVT == MVT::f32) { in getFPROUND()
219 if (OpVT == MVT::f64) in getFPROUND()
221 if (OpVT == MVT::f80) in getFPROUND()
223 if (OpVT == MVT::f128) in getFPROUND()
225 if (OpVT == MVT::ppcf128) in getFPROUND()
227 } else if (RetVT == MVT::f64) { in getFPROUND()
228 if (OpVT == MVT::f80) in getFPROUND()
230 if (OpVT == MVT::f128) in getFPROUND()
232 if (OpVT == MVT::ppcf128) in getFPROUND()
234 } else if (RetVT == MVT::f80) { in getFPROUND()
235 if (OpVT == MVT::f128) in getFPROUND()
245 if (OpVT == MVT::f32) { in getFPTOSINT()
246 if (RetVT == MVT::i32) in getFPTOSINT()
248 if (RetVT == MVT::i64) in getFPTOSINT()
250 if (RetVT == MVT::i128) in getFPTOSINT()
252 } else if (OpVT == MVT::f64) { in getFPTOSINT()
253 if (RetVT == MVT::i32) in getFPTOSINT()
255 if (RetVT == MVT::i64) in getFPTOSINT()
257 if (RetVT == MVT::i128) in getFPTOSINT()
259 } else if (OpVT == MVT::f80) { in getFPTOSINT()
260 if (RetVT == MVT::i32) in getFPTOSINT()
262 if (RetVT == MVT::i64) in getFPTOSINT()
264 if (RetVT == MVT::i128) in getFPTOSINT()
266 } else if (OpVT == MVT::f128) { in getFPTOSINT()
267 if (RetVT == MVT::i32) in getFPTOSINT()
269 if (RetVT == MVT::i64) in getFPTOSINT()
271 if (RetVT == MVT::i128) in getFPTOSINT()
273 } else if (OpVT == MVT::ppcf128) { in getFPTOSINT()
274 if (RetVT == MVT::i32) in getFPTOSINT()
276 if (RetVT == MVT::i64) in getFPTOSINT()
278 if (RetVT == MVT::i128) in getFPTOSINT()
287 if (OpVT == MVT::f32) { in getFPTOUINT()
288 if (RetVT == MVT::i32) in getFPTOUINT()
290 if (RetVT == MVT::i64) in getFPTOUINT()
292 if (RetVT == MVT::i128) in getFPTOUINT()
294 } else if (OpVT == MVT::f64) { in getFPTOUINT()
295 if (RetVT == MVT::i32) in getFPTOUINT()
297 if (RetVT == MVT::i64) in getFPTOUINT()
299 if (RetVT == MVT::i128) in getFPTOUINT()
301 } else if (OpVT == MVT::f80) { in getFPTOUINT()
302 if (RetVT == MVT::i32) in getFPTOUINT()
304 if (RetVT == MVT::i64) in getFPTOUINT()
306 if (RetVT == MVT::i128) in getFPTOUINT()
308 } else if (OpVT == MVT::f128) { in getFPTOUINT()
309 if (RetVT == MVT::i32) in getFPTOUINT()
311 if (RetVT == MVT::i64) in getFPTOUINT()
313 if (RetVT == MVT::i128) in getFPTOUINT()
315 } else if (OpVT == MVT::ppcf128) { in getFPTOUINT()
316 if (RetVT == MVT::i32) in getFPTOUINT()
318 if (RetVT == MVT::i64) in getFPTOUINT()
320 if (RetVT == MVT::i128) in getFPTOUINT()
329 if (OpVT == MVT::i32) { in getSINTTOFP()
330 if (RetVT == MVT::f32) in getSINTTOFP()
332 if (RetVT == MVT::f64) in getSINTTOFP()
334 if (RetVT == MVT::f80) in getSINTTOFP()
336 if (RetVT == MVT::f128) in getSINTTOFP()
338 if (RetVT == MVT::ppcf128) in getSINTTOFP()
340 } else if (OpVT == MVT::i64) { in getSINTTOFP()
341 if (RetVT == MVT::f32) in getSINTTOFP()
343 if (RetVT == MVT::f64) in getSINTTOFP()
345 if (RetVT == MVT::f80) in getSINTTOFP()
347 if (RetVT == MVT::f128) in getSINTTOFP()
349 if (RetVT == MVT::ppcf128) in getSINTTOFP()
351 } else if (OpVT == MVT::i128) { in getSINTTOFP()
352 if (RetVT == MVT::f32) in getSINTTOFP()
354 if (RetVT == MVT::f64) in getSINTTOFP()
356 if (RetVT == MVT::f80) in getSINTTOFP()
358 if (RetVT == MVT::f128) in getSINTTOFP()
360 if (RetVT == MVT::ppcf128) in getSINTTOFP()
369 if (OpVT == MVT::i32) { in getUINTTOFP()
370 if (RetVT == MVT::f32) in getUINTTOFP()
372 if (RetVT == MVT::f64) in getUINTTOFP()
374 if (RetVT == MVT::f80) in getUINTTOFP()
376 if (RetVT == MVT::f128) in getUINTTOFP()
378 if (RetVT == MVT::ppcf128) in getUINTTOFP()
380 } else if (OpVT == MVT::i64) { in getUINTTOFP()
381 if (RetVT == MVT::f32) in getUINTTOFP()
383 if (RetVT == MVT::f64) in getUINTTOFP()
385 if (RetVT == MVT::f80) in getUINTTOFP()
387 if (RetVT == MVT::f128) in getUINTTOFP()
389 if (RetVT == MVT::ppcf128) in getUINTTOFP()
391 } else if (OpVT == MVT::i128) { in getUINTTOFP()
392 if (RetVT == MVT::f32) in getUINTTOFP()
394 if (RetVT == MVT::f64) in getUINTTOFP()
396 if (RetVT == MVT::f80) in getUINTTOFP()
398 if (RetVT == MVT::f128) in getUINTTOFP()
400 if (RetVT == MVT::ppcf128) in getUINTTOFP()
406 RTLIB::Libcall RTLIB::getSYNC(unsigned Opc, MVT VT) { in getSYNC()
412 case MVT::i8: \ in getSYNC()
414 case MVT::i16: \ in getSYNC()
416 case MVT::i32: \ in getSYNC()
418 case MVT::i64: \ in getSYNC()
420 case MVT::i128: \ in getSYNC()
587 for (MVT VT : MVT::all_valuetypes()) { in initActions()
663 setOperationAction(ISD::PREFETCH, MVT::Other, Expand); in initActions()
666 setOperationAction(ISD::READCYCLECOUNTER, MVT::i64, Expand); in initActions()
671 setOperationAction(ISD::ConstantFP, MVT::f16, Expand); in initActions()
672 setOperationAction(ISD::ConstantFP, MVT::f32, Expand); in initActions()
673 setOperationAction(ISD::ConstantFP, MVT::f64, Expand); in initActions()
674 setOperationAction(ISD::ConstantFP, MVT::f80, Expand); in initActions()
675 setOperationAction(ISD::ConstantFP, MVT::f128, Expand); in initActions()
678 for (MVT VT : {MVT::f32, MVT::f64, MVT::f128}) { in initActions()
694 setOperationAction(ISD::TRAP, MVT::Other, Expand); in initActions()
698 setOperationAction(ISD::DEBUGTRAP, MVT::Other, Expand); in initActions()
701 MVT TargetLoweringBase::getScalarShiftAmountTy(const DataLayout &DL, in getScalarShiftAmountTy()
703 return MVT::getIntegerVT(8 * DL.getPointerSize(0)); in getScalarShiftAmountTy()
738 MVT SVT = VT.getSimpleVT(); in getTypeConversion()
740 MVT NVT = TransformToType[SVT.SimpleTy]; in getTypeConversion()
824 MVT NVT = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
826 if (NVT != MVT() && ValueTypeActions.getTypeAction(NVT) == TypeLegal) in getTypeConversion()
847 MVT LargerVector = MVT::getVectorVT(EltVT.getSimpleVT(), NumElts); in getTypeConversion()
848 if (LargerVector == MVT()) in getTypeConversion()
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()
918 for (auto I = TRI.legalclasstypes_begin(RC); *I != MVT::Other; ++I) in isLegalRC()
1045 MVT VT) const { in findRepresentativeClass()
1073 static_assert(MVT::LAST_VALUETYPE <= MVT::MAX_ALLOWED_VALUETYPE, in computeRegisterProperties()
1077 for (unsigned i = 0; i != MVT::LAST_VALUETYPE; ++i) { in computeRegisterProperties()
1079 RegisterTypeForVT[i] = TransformToType[i] = (MVT::SimpleValueType)i; in computeRegisterProperties()
1082 NumRegistersForVT[MVT::isVoid] = 0; in computeRegisterProperties()
1085 unsigned LargestIntReg = MVT::LAST_INTEGER_VALUETYPE; in computeRegisterProperties()
1087 assert(LargestIntReg != MVT::i1 && "No integer registers defined!"); in computeRegisterProperties()
1092 ExpandedReg <= MVT::LAST_INTEGER_VALUETYPE; ++ExpandedReg) { in computeRegisterProperties()
1094 RegisterTypeForVT[ExpandedReg] = (MVT::SimpleValueType)LargestIntReg; in computeRegisterProperties()
1095 TransformToType[ExpandedReg] = (MVT::SimpleValueType)(ExpandedReg - 1); in computeRegisterProperties()
1096 ValueTypeActions.setTypeAction((MVT::SimpleValueType)ExpandedReg, in computeRegisterProperties()
1104 IntReg >= (unsigned)MVT::i1; --IntReg) { in computeRegisterProperties()
1105 MVT IVT = (MVT::SimpleValueType)IntReg; in computeRegisterProperties()
1110 (MVT::SimpleValueType)LegalIntReg; in computeRegisterProperties()
1116 if (!isTypeLegal(MVT::ppcf128)) { in computeRegisterProperties()
1117 if (isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1118 NumRegistersForVT[MVT::ppcf128] = 2*NumRegistersForVT[MVT::f64]; in computeRegisterProperties()
1119 RegisterTypeForVT[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1120 TransformToType[MVT::ppcf128] = MVT::f64; in computeRegisterProperties()
1121 ValueTypeActions.setTypeAction(MVT::ppcf128, TypeExpandFloat); in computeRegisterProperties()
1123 NumRegistersForVT[MVT::ppcf128] = NumRegistersForVT[MVT::i128]; in computeRegisterProperties()
1124 RegisterTypeForVT[MVT::ppcf128] = RegisterTypeForVT[MVT::i128]; in computeRegisterProperties()
1125 TransformToType[MVT::ppcf128] = MVT::i128; in computeRegisterProperties()
1126 ValueTypeActions.setTypeAction(MVT::ppcf128, TypeSoftenFloat); in computeRegisterProperties()
1132 if (!isTypeLegal(MVT::f128)) { in computeRegisterProperties()
1133 NumRegistersForVT[MVT::f128] = NumRegistersForVT[MVT::i128]; in computeRegisterProperties()
1134 RegisterTypeForVT[MVT::f128] = RegisterTypeForVT[MVT::i128]; in computeRegisterProperties()
1135 TransformToType[MVT::f128] = MVT::i128; in computeRegisterProperties()
1136 ValueTypeActions.setTypeAction(MVT::f128, TypeSoftenFloat); in computeRegisterProperties()
1141 if (!isTypeLegal(MVT::f64)) { in computeRegisterProperties()
1142 NumRegistersForVT[MVT::f64] = NumRegistersForVT[MVT::i64]; in computeRegisterProperties()
1143 RegisterTypeForVT[MVT::f64] = RegisterTypeForVT[MVT::i64]; in computeRegisterProperties()
1144 TransformToType[MVT::f64] = MVT::i64; in computeRegisterProperties()
1145 ValueTypeActions.setTypeAction(MVT::f64, TypeSoftenFloat); in computeRegisterProperties()
1150 if (!isTypeLegal(MVT::f32)) { in computeRegisterProperties()
1151 NumRegistersForVT[MVT::f32] = NumRegistersForVT[MVT::i32]; in computeRegisterProperties()
1152 RegisterTypeForVT[MVT::f32] = RegisterTypeForVT[MVT::i32]; in computeRegisterProperties()
1153 TransformToType[MVT::f32] = MVT::i32; in computeRegisterProperties()
1154 ValueTypeActions.setTypeAction(MVT::f32, TypeSoftenFloat); in computeRegisterProperties()
1160 if (!isTypeLegal(MVT::f16)) { in computeRegisterProperties()
1161 NumRegistersForVT[MVT::f16] = NumRegistersForVT[MVT::f32]; in computeRegisterProperties()
1162 RegisterTypeForVT[MVT::f16] = RegisterTypeForVT[MVT::f32]; in computeRegisterProperties()
1163 TransformToType[MVT::f16] = MVT::f32; in computeRegisterProperties()
1164 ValueTypeActions.setTypeAction(MVT::f16, TypePromoteFloat); in computeRegisterProperties()
1168 for (unsigned i = MVT::FIRST_VECTOR_VALUETYPE; in computeRegisterProperties()
1169 i <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++i) { in computeRegisterProperties()
1170 MVT VT = (MVT::SimpleValueType) i; in computeRegisterProperties()
1174 MVT EltVT = VT.getVectorElementType(); in computeRegisterProperties()
1182 for (unsigned nVT = i + 1; nVT <= MVT::LAST_INTEGER_VECTOR_VALUETYPE; ++nVT) { in computeRegisterProperties()
1183 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1202 for (unsigned nVT = i + 1; nVT <= MVT::LAST_VECTOR_VALUETYPE; ++nVT) { in computeRegisterProperties()
1203 MVT SVT = (MVT::SimpleValueType) nVT; in computeRegisterProperties()
1220 MVT IntermediateVT; in computeRegisterProperties()
1221 MVT RegisterVT; in computeRegisterProperties()
1227 MVT NVT = VT.getPow2VectorType(); in computeRegisterProperties()
1230 TransformToType[i] = MVT::Other; in computeRegisterProperties()
1255 for (unsigned i = 0; i != MVT::LAST_VALUETYPE; ++i) { in computeRegisterProperties()
1258 std::tie(RRC, Cost) = findRepresentativeClass(TRI, (MVT::SimpleValueType)i); in computeRegisterProperties()
1270 MVT::SimpleValueType TargetLoweringBase::getCmpLibcallReturnType() const { in getCmpLibcallReturnType()
1271 return MVT::i32; // return the default value in getCmpLibcallReturnType()
1285 MVT &RegisterVT) const { in getVectorTypeBreakdown()
1331 MVT DestVT = getRegisterType(Context, NewVT); in getVectorTypeBreakdown()
1374 MVT MinVT = TLI.getRegisterType(ReturnType->getContext(), MVT::i32); in GetReturnInfo()
1381 MVT PartVT = in GetReturnInfo()
1515 std::pair<int, MVT>
1704 if (VT.getScalarType() == MVT::f64) { in getReciprocalOpName()
1707 assert(VT.getScalarType() == MVT::f32 && in getReciprocalOpName()