Home
last modified time | relevance | path

Searched refs:OpVT (Results 1 – 25 of 72) sorted by relevance

123

/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DRuntimeLibcalls.h37 Libcall getFPEXT(EVT OpVT, EVT RetVT);
41 Libcall getFPROUND(EVT OpVT, EVT RetVT);
45 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
49 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
53 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
57 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
/external/llvm-project/llvm/include/llvm/CodeGen/
DRuntimeLibcalls.h38 Libcall getFPEXT(EVT OpVT, EVT RetVT);
42 Libcall getFPROUND(EVT OpVT, EVT RetVT);
46 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
50 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
54 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
58 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTargetLoweringBase.cpp220 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT() argument
221 if (OpVT == MVT::f16) { in getFPEXT()
224 } else if (OpVT == MVT::f32) { in getFPEXT()
231 } else if (OpVT == MVT::f64) { in getFPEXT()
236 } else if (OpVT == MVT::f80) { in getFPEXT()
246 RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) { in getFPROUND() argument
248 if (OpVT == MVT::f32) in getFPROUND()
250 if (OpVT == MVT::f64) in getFPROUND()
252 if (OpVT == MVT::f80) in getFPROUND()
254 if (OpVT == MVT::f128) in getFPROUND()
[all …]
/external/llvm-project/llvm/lib/CodeGen/
DTargetLoweringBase.cpp223 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT() argument
224 if (OpVT == MVT::f16) { in getFPEXT()
231 } else if (OpVT == MVT::f32) { in getFPEXT()
238 } else if (OpVT == MVT::f64) { in getFPEXT()
243 } else if (OpVT == MVT::f80) { in getFPEXT()
253 RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) { in getFPROUND() argument
255 if (OpVT == MVT::f32) in getFPROUND()
257 if (OpVT == MVT::f64) in getFPROUND()
259 if (OpVT == MVT::f80) in getFPROUND()
261 if (OpVT == MVT::f128) in getFPROUND()
[all …]
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp501 RTLIB::Libcall RTLIB::getFPEXT(EVT OpVT, EVT RetVT) { in getFPEXT() argument
502 if (OpVT == MVT::f16) { in getFPEXT()
505 } else if (OpVT == MVT::f32) { in getFPEXT()
512 } else if (OpVT == MVT::f64) { in getFPEXT()
524 RTLIB::Libcall RTLIB::getFPROUND(EVT OpVT, EVT RetVT) { in getFPROUND() argument
526 if (OpVT == MVT::f32) in getFPROUND()
528 if (OpVT == MVT::f64) in getFPROUND()
530 if (OpVT == MVT::f80) in getFPROUND()
532 if (OpVT == MVT::f128) in getFPROUND()
534 if (OpVT == MVT::ppcf128) in getFPROUND()
[all …]
/external/llvm/include/llvm/CodeGen/
DRuntimeLibcalls.h481 Libcall getFPEXT(EVT OpVT, EVT RetVT);
485 Libcall getFPROUND(EVT OpVT, EVT RetVT);
489 Libcall getFPTOSINT(EVT OpVT, EVT RetVT);
493 Libcall getFPTOUINT(EVT OpVT, EVT RetVT);
497 Libcall getSINTTOFP(EVT OpVT, EVT RetVT);
501 Libcall getUINTTOFP(EVT OpVT, EVT RetVT);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp152 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatRes_Unary() local
153 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_Unary()
495 EVT OpVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_FP_EXTEND() local
496 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_FP_EXTEND()
532 EVT OpVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_FP_ROUND() local
533 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_FP_ROUND()
1038 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatOp_Unary() local
1039 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatOp_Unary()
1053 EVT OpVT = N->getOperand(N->isStrictFPOpcode() ? 1 : 0).getValueType(); in SoftenFloatOp_LROUND() local
1054 return SoftenFloatOp_Unary(N, GetFPLibCall(OpVT, in SoftenFloatOp_LROUND()
[all …]
DSelectionDAG.cpp1161 EVT OpVT) { in getBoolExtOrTrunc() argument
1165 TargetLowering::BooleanContent BType = TLI->getBooleanContents(OpVT); in getBoolExtOrTrunc()
1207 EVT OpVT) { in getBoolConstant() argument
1211 switch (TLI->getBooleanContents(OpVT)) { in getBoolConstant()
2008 EVT OpVT = N1.getValueType(); in FoldSetCC() local
2014 case ISD::SETFALSE2: return getBoolConstant(false, dl, VT, OpVT); in FoldSetCC()
2016 case ISD::SETTRUE2: return getBoolConstant(true, dl, VT, OpVT); in FoldSetCC()
2028 assert(!OpVT.isInteger() && "Illegal setcc for integer!"); in FoldSetCC()
2032 if (OpVT.isInteger()) { in FoldSetCC()
2049 return getBoolConstant(ISD::isTrueWhenEqual(Cond), dl, VT, OpVT); in FoldSetCC()
[all …]
DTargetLowering.cpp2854 EVT OpVT = N0.getValueType(); in foldSetCCWithAnd() local
2855 if (N0.getOpcode() != ISD::AND || !OpVT.isInteger() || in foldSetCCWithAnd()
2871 SDValue Zero = DAG.getConstant(0, DL, OpVT); in foldSetCCWithAnd()
2877 assert(OpVT.isInteger()); in foldSetCCWithAnd()
2878 Cond = ISD::getSetCCInverse(Cond, OpVT); in foldSetCCWithAnd()
2896 SDValue NotX = DAG.getNOT(SDLoc(X), X, OpVT); in foldSetCCWithAnd()
2897 SDValue NewAnd = DAG.getNode(ISD::AND, SDLoc(N0), OpVT, NotX, Y); in foldSetCCWithAnd()
3088 EVT OpVT = N0.getValueType(); in foldSetCCWithBinOp() local
3092 return DAG.getSetCC(DL, VT, Y, DAG.getConstant(0, DL, OpVT), Cond); in foldSetCCWithBinOp()
3100 return DAG.getSetCC(DL, VT, X, DAG.getConstant(0, DL, OpVT), Cond); in foldSetCCWithBinOp()
[all …]
DLegalizeVectorTypes.cpp347 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_UnaryOp() local
356 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_UnaryOp()
359 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_UnaryOp()
379 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_VecInregOp() local
380 EVT OpEltVT = OpVT.getVectorElementType(); in ScalarizeVecRes_VecInregOp()
383 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_VecInregOp()
415 EVT OpVT = Cond.getValueType(); in ScalarizeVecRes_VSELECT() local
420 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_VSELECT()
423 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_VSELECT()
443 EVT OpVT = Cond->getOperand(0).getValueType(); in ScalarizeVecRes_VSELECT() local
[all …]
DScheduleDAGSDNodes.cpp479 EVT OpVT = N->getOperand(i).getValueType(); in AddSchedEdges() local
480 assert(OpVT != MVT::Glue && "Glued nodes should be in same sunit!"); in AddSchedEdges()
481 bool isChain = OpVT == MVT::Other; in AddSchedEdges()
DInstrEmitter.cpp377 MVT OpVT = Op.getSimpleValueType(); in AddOperand() local
382 TLI->isTypeLegal(OpVT) in AddOperand()
383 ? TLI->getRegClassFor(OpVT, in AddOperand()
DLegalizeDAG.cpp1045 MVT OpVT = Node->getOperand(CompareOperand).getSimpleValueType(); in LegalizeOp() local
1048 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
1054 Action = TLI.getOperationAction(Node->getOpcode(), OpVT); in LegalizeOp()
1640 MVT OpVT = LHS.getSimpleValueType(); in LegalizeSetCCCondCode() local
1643 switch (TLI.getCondCodeAction(CCCode, OpVT)) { in LegalizeSetCCCondCode()
1650 if (TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1657 InvCC = getSetCCInverse(CCCode, OpVT); in LegalizeSetCCCondCode()
1658 if (!TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1664 if (TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1677 assert(TLI.isCondCodeLegal(ISD::SETOEQ, OpVT) in LegalizeSetCCCondCode()
[all …]
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp165 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatRes_Unary() local
166 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_Unary()
514 EVT OpVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_FP_EXTEND() local
515 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_FP_EXTEND()
551 EVT OpVT = N->getOperand(IsStrict ? 1 : 0).getValueType(); in SoftenFloatRes_FP_ROUND() local
552 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatRes_FP_ROUND()
1076 EVT OpVT = N->getOperand(0 + Offset).getValueType(); in SoftenFloatOp_Unary() local
1077 CallOptions.setTypeListBeforeSoften(OpVT, N->getValueType(0), true); in SoftenFloatOp_Unary()
1091 EVT OpVT = N->getOperand(N->isStrictFPOpcode() ? 1 : 0).getValueType(); in SoftenFloatOp_LROUND() local
1092 return SoftenFloatOp_Unary(N, GetFPLibCall(OpVT, in SoftenFloatOp_LROUND()
[all …]
DSelectionDAG.cpp1212 EVT OpVT) { in getBoolExtOrTrunc() argument
1216 TargetLowering::BooleanContent BType = TLI->getBooleanContents(OpVT); in getBoolExtOrTrunc()
1221 EVT OpVT = Op.getValueType(); in getZeroExtendInReg() local
1222 assert(VT.isInteger() && OpVT.isInteger() && in getZeroExtendInReg()
1224 assert(VT.isVector() == OpVT.isVector() && in getZeroExtendInReg()
1228 VT.getVectorElementCount() == OpVT.getVectorElementCount()) && in getZeroExtendInReg()
1230 assert(VT.bitsLE(OpVT) && "Not extending!"); in getZeroExtendInReg()
1231 if (OpVT == VT) in getZeroExtendInReg()
1233 APInt Imm = APInt::getLowBitsSet(OpVT.getScalarSizeInBits(), in getZeroExtendInReg()
1235 return getNode(ISD::AND, DL, OpVT, Op, getConstant(Imm, DL, OpVT)); in getZeroExtendInReg()
[all …]
DTargetLowering.cpp3120 EVT OpVT = N0.getValueType(); in foldSetCCWithAnd() local
3121 if (N0.getOpcode() != ISD::AND || !OpVT.isInteger() || in foldSetCCWithAnd()
3137 SDValue Zero = DAG.getConstant(0, DL, OpVT); in foldSetCCWithAnd()
3143 assert(OpVT.isInteger()); in foldSetCCWithAnd()
3144 Cond = ISD::getSetCCInverse(Cond, OpVT); in foldSetCCWithAnd()
3162 SDValue NotX = DAG.getNOT(SDLoc(X), X, OpVT); in foldSetCCWithAnd()
3163 SDValue NewAnd = DAG.getNode(ISD::AND, SDLoc(N0), OpVT, NotX, Y); in foldSetCCWithAnd()
3354 EVT OpVT = N0.getValueType(); in foldSetCCWithBinOp() local
3358 return DAG.getSetCC(DL, VT, Y, DAG.getConstant(0, DL, OpVT), Cond); in foldSetCCWithBinOp()
3366 return DAG.getSetCC(DL, VT, X, DAG.getConstant(0, DL, OpVT), Cond); in foldSetCCWithBinOp()
[all …]
DLegalizeVectorTypes.cpp359 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_UnaryOp() local
368 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_UnaryOp()
371 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_UnaryOp()
390 EVT OpVT = Op.getValueType(); in ScalarizeVecRes_VecInregOp() local
391 EVT OpEltVT = OpVT.getVectorElementType(); in ScalarizeVecRes_VecInregOp()
394 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_VecInregOp()
425 EVT OpVT = Cond.getValueType(); in ScalarizeVecRes_VSELECT() local
430 if (getTypeAction(OpVT) == TargetLowering::TypeScalarizeVector) { in ScalarizeVecRes_VSELECT()
433 EVT VT = OpVT.getVectorElementType(); in ScalarizeVecRes_VSELECT()
452 EVT OpVT = Cond->getOperand(0).getValueType(); in ScalarizeVecRes_VSELECT() local
[all …]
DScheduleDAGSDNodes.cpp483 EVT OpVT = N->getOperand(i).getValueType(); in AddSchedEdges() local
484 assert(OpVT != MVT::Glue && "Glued nodes should be in same sunit!"); in AddSchedEdges()
485 bool isChain = OpVT == MVT::Other; in AddSchedEdges()
DLegalizeDAG.cpp1045 MVT OpVT = Node->getOperand(CompareOperand).getSimpleValueType(); in LegalizeOp() local
1048 Action = TLI.getCondCodeAction(CCCode, OpVT); in LegalizeOp()
1054 Action = TLI.getOperationAction(Node->getOpcode(), OpVT); in LegalizeOp()
1693 MVT OpVT = LHS.getSimpleValueType(); in LegalizeSetCCCondCode() local
1696 switch (TLI.getCondCodeAction(CCCode, OpVT)) { in LegalizeSetCCCondCode()
1703 if (TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1710 InvCC = getSetCCInverse(CCCode, OpVT); in LegalizeSetCCCondCode()
1711 if (!TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1717 if (TLI.isCondCodeLegalOrCustom(InvCC, OpVT)) { in LegalizeSetCCCondCode()
1730 assert(TLI.isCondCodeLegal(ISD::SETOEQ, OpVT) in LegalizeSetCCCondCode()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DScheduleDAGSDNodes.cpp462 EVT OpVT = N->getOperand(i).getValueType(); in AddSchedEdges() local
463 assert(OpVT != MVT::Glue && "Glued nodes should be in same sunit!"); in AddSchedEdges()
464 bool isChain = OpVT == MVT::Other; in AddSchedEdges()
DLegalizeFloatTypes.cpp1723 static ISD::NodeType GetPromotionOpcode(EVT OpVT, EVT RetVT) { in GetPromotionOpcode() argument
1724 if (OpVT == MVT::f16) { in GetPromotionOpcode()
1762 EVT OpVT = Op->getValueType(0); in PromoteFloatOp_BITCAST() local
1764 EVT IVT = EVT::getIntegerVT(*DAG.getContext(), OpVT.getSizeInBits()); in PromoteFloatOp_BITCAST()
1771 return DAG.getNode(GetPromotionOpcode(PromotedVT, OpVT), SDLoc(N), IVT, in PromoteFloatOp_BITCAST()
2072 EVT OpVT = Op->getValueType(0); in PromoteFloatRes_FP_ROUND() local
2077 SDValue Round = DAG.getNode(GetPromotionOpcode(OpVT, VT), DL, IVT, Op); in PromoteFloatRes_FP_ROUND()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp809 EVT OpVT = Op0.getValueType(); in SelectZeroExtend() local
810 unsigned OpBW = OpVT.getSizeInBits(); in SelectZeroExtend()
813 if (OpVT.isVector() && OpVT.getVectorElementType() == MVT::i1 && OpBW <= 64) { in SelectZeroExtend()
815 unsigned NE = OpVT.getVectorNumElements(); in SelectZeroExtend()
/external/llvm-project/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp2367 EVT OpVT = Op.getOperand(0).getValueType(); in LowerSINT_TO_FP() local
2368 assert(OpVT == MVT::i32 || (OpVT == MVT::i64)); in LowerSINT_TO_FP()
2370 EVT floatVT = (OpVT == MVT::i32) ? MVT::f32 : MVT::f64; in LowerSINT_TO_FP()
2374 && (!hasHardQuad || !TLI.isTypeLegal(OpVT))) { in LowerSINT_TO_FP()
2375 const char *libName = TLI.getLibcallName(OpVT == MVT::i32 in LowerSINT_TO_FP()
2382 if (!TLI.isTypeLegal(OpVT)) in LowerSINT_TO_FP()
2387 unsigned opcode = (OpVT == MVT::i32)? SPISD::ITOF : SPISD::XTOF; in LowerSINT_TO_FP()
2416 EVT OpVT = Op.getOperand(0).getValueType(); in LowerUINT_TO_FP() local
2417 assert(OpVT == MVT::i32 || OpVT == MVT::i64); in LowerUINT_TO_FP()
2421 if (Op.getValueType() != MVT::f128 || (hasHardQuad && TLI.isTypeLegal(OpVT))) in LowerUINT_TO_FP()
[all …]
/external/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp2392 EVT OpVT = Op.getOperand(0).getValueType(); in LowerSINT_TO_FP() local
2393 assert(OpVT == MVT::i32 || (OpVT == MVT::i64)); in LowerSINT_TO_FP()
2395 EVT floatVT = (OpVT == MVT::i32) ? MVT::f32 : MVT::f64; in LowerSINT_TO_FP()
2399 && (!hasHardQuad || !TLI.isTypeLegal(OpVT))) { in LowerSINT_TO_FP()
2400 const char *libName = TLI.getLibcallName(OpVT == MVT::i32 in LowerSINT_TO_FP()
2407 if (!TLI.isTypeLegal(OpVT)) in LowerSINT_TO_FP()
2412 unsigned opcode = (OpVT == MVT::i32)? SPISD::ITOF : SPISD::XTOF; in LowerSINT_TO_FP()
2441 EVT OpVT = Op.getOperand(0).getValueType(); in LowerUINT_TO_FP() local
2442 assert(OpVT == MVT::i32 || OpVT == MVT::i64); in LowerUINT_TO_FP()
2446 if (Op.getValueType() != MVT::f128 || (hasHardQuad && TLI.isTypeLegal(OpVT))) in LowerUINT_TO_FP()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp2363 EVT OpVT = Op.getOperand(0).getValueType(); in LowerSINT_TO_FP() local
2364 assert(OpVT == MVT::i32 || (OpVT == MVT::i64)); in LowerSINT_TO_FP()
2366 EVT floatVT = (OpVT == MVT::i32) ? MVT::f32 : MVT::f64; in LowerSINT_TO_FP()
2370 && (!hasHardQuad || !TLI.isTypeLegal(OpVT))) { in LowerSINT_TO_FP()
2371 const char *libName = TLI.getLibcallName(OpVT == MVT::i32 in LowerSINT_TO_FP()
2378 if (!TLI.isTypeLegal(OpVT)) in LowerSINT_TO_FP()
2383 unsigned opcode = (OpVT == MVT::i32)? SPISD::ITOF : SPISD::XTOF; in LowerSINT_TO_FP()
2412 EVT OpVT = Op.getOperand(0).getValueType(); in LowerUINT_TO_FP() local
2413 assert(OpVT == MVT::i32 || OpVT == MVT::i64); in LowerUINT_TO_FP()
2417 if (Op.getValueType() != MVT::f128 || (hasHardQuad && TLI.isTypeLegal(OpVT))) in LowerUINT_TO_FP()
[all …]

123