/external/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 318 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 319 if (IdxN == 0) in getRegForGEPIndex() 329 IdxN = fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::SIGN_EXTEND, IdxN, in getRegForGEPIndex() 333 IdxN = in getRegForGEPIndex() 334 fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::TRUNCATE, IdxN, IdxNIsKill); in getRegForGEPIndex() 337 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 523 uint64_t IdxN = CI->getValue().sextOrTrunc(64).getSExtValue(); in selectGetElementPtr() local 524 TotalOffs += DL.getTypeAllocSize(Ty) * IdxN; in selectGetElementPtr() 545 unsigned IdxN = Pair.first; in selectGetElementPtr() local 547 if (!IdxN) // Unhandled operand. Halt "fast" selection and bail. in selectGetElementPtr() [all …]
|
D | SelectionDAGBuilder.cpp | 3350 SDValue IdxN = getValue(Idx); in visitGetElementPtr() local 3352 if (!IdxN.getValueType().isVector() && VectorWidth) { in visitGetElementPtr() 3353 MVT VT = MVT::getVectorVT(IdxN.getValueType().getSimpleVT(), VectorWidth); in visitGetElementPtr() 3354 SmallVector<SDValue, 16> Ops(VectorWidth, IdxN); in visitGetElementPtr() 3355 IdxN = DAG.getNode(ISD::BUILD_VECTOR, dl, VT, Ops); in visitGetElementPtr() 3359 IdxN = DAG.getSExtOrTrunc(IdxN, dl, N.getValueType()); in visitGetElementPtr() 3366 IdxN = DAG.getNode(ISD::SHL, dl, in visitGetElementPtr() 3367 N.getValueType(), IdxN, in visitGetElementPtr() 3368 DAG.getConstant(Amt, dl, IdxN.getValueType())); in visitGetElementPtr() 3370 SDValue Scale = DAG.getConstant(ElementSize, dl, IdxN.getValueType()); in visitGetElementPtr() [all …]
|
D | DAGCombiner.cpp | 13289 auto *IdxN = dyn_cast<ConstantSDNode>(V->getOperand(2)); in simplifyShuffleOperandRecursively() local 13290 if (!IdxN) in simplifyShuffleOperandRecursively() 13294 int Idx = IdxN->getZExtValue(); in simplifyShuffleOperandRecursively()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 508 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 509 if (IdxN == 0) in getRegForGEPIndex() 519 IdxN = fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::SIGN_EXTEND, IdxN, in getRegForGEPIndex() 523 IdxN = in getRegForGEPIndex() 524 fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::TRUNCATE, IdxN, IdxNIsKill); in getRegForGEPIndex() 527 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 711 uint64_t IdxN = CI->getValue().sextOrTrunc(64).getSExtValue(); in selectGetElementPtr() local 712 TotalOffs += DL.getTypeAllocSize(Ty) * IdxN; in selectGetElementPtr() 733 unsigned IdxN = Pair.first; in selectGetElementPtr() local 735 if (!IdxN) // Unhandled operand. Halt "fast" selection and bail. in selectGetElementPtr() [all …]
|
D | SelectionDAGBuilder.cpp | 3945 SDValue IdxN = getValue(Idx); in visitGetElementPtr() local 3947 if (!IdxN.getValueType().isVector() && VectorWidth) { in visitGetElementPtr() 3948 EVT VT = EVT::getVectorVT(*Context, IdxN.getValueType(), VectorWidth); in visitGetElementPtr() 3949 IdxN = DAG.getSplatBuildVector(VT, dl, IdxN); in visitGetElementPtr() 3954 IdxN = DAG.getSExtOrTrunc(IdxN, dl, N.getValueType()); in visitGetElementPtr() 3961 IdxN = DAG.getNode(ISD::SHL, dl, in visitGetElementPtr() 3962 N.getValueType(), IdxN, in visitGetElementPtr() 3963 DAG.getConstant(Amt, dl, IdxN.getValueType())); in visitGetElementPtr() 3966 IdxN.getValueType()); in visitGetElementPtr() 3967 IdxN = DAG.getNode(ISD::MUL, dl, in visitGetElementPtr() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/ |
D | HexagonISelLoweringHVX.cpp | 391 auto *IdxN = dyn_cast<ConstantSDNode>(SplatV.getNode()); in buildHvxVectorReg() local 392 if (IdxN && IdxN->isNullValue()) in buildHvxVectorReg() 925 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode()); in insertHvxSubvectorReg() local 926 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorReg() 949 if (RolBase != 4 || !IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorReg() 985 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode()); in insertHvxSubvectorPred() local 986 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorPred() 1000 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorPred()
|
D | HexagonISelLowering.cpp | 2336 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV); in extractVector() local 2344 if (IdxN) { in extractVector() 2348 if (IdxN->isNullValue() && ValTy.getSizeInBits() == 1) in extractVector() 2394 if (IdxN) { in extractVector() 2395 unsigned Off = IdxN->getZExtValue() * ElemWidth; in extractVector()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4819 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 4820 if (IdxN == 0) in getRegForGEPIndex() 4830 IdxN = emitIntExt(IdxVT.getSimpleVT(), IdxN, PtrVT, /*IsZExt=*/false); in getRegForGEPIndex() 4834 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 4882 unsigned IdxN = Pair.first; in selectGetElementPtr() local 4884 if (!IdxN) in selectGetElementPtr() 4891 IdxN = emitMul_rr(VT, IdxN, IdxNIsKill, C, true); in selectGetElementPtr() 4892 if (!IdxN) in selectGetElementPtr() 4896 N = fastEmit_rr(VT, VT, ISD::ADD, N, NIsKill, IdxN, IdxNIsKill); in selectGetElementPtr()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4998 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 4999 if (IdxN == 0) in getRegForGEPIndex() 5009 IdxN = emitIntExt(IdxVT.getSimpleVT(), IdxN, PtrVT, /*isZExt=*/false); in getRegForGEPIndex() 5013 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 5064 unsigned IdxN = Pair.first; in selectGetElementPtr() local 5066 if (!IdxN) in selectGetElementPtr() 5073 IdxN = emitMul_rr(VT, IdxN, IdxNIsKill, C, true); in selectGetElementPtr() 5074 if (!IdxN) in selectGetElementPtr() 5078 N = fastEmit_rr(VT, VT, ISD::ADD, N, NIsKill, IdxN, IdxNIsKill); in selectGetElementPtr()
|