/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 263 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 264 if (IdxN == 0) in getRegForGEPIndex() 274 IdxN = FastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::SIGN_EXTEND, in getRegForGEPIndex() 275 IdxN, IdxNIsKill); in getRegForGEPIndex() 279 IdxN = FastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::TRUNCATE, in getRegForGEPIndex() 280 IdxN, IdxNIsKill); in getRegForGEPIndex() 283 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 468 unsigned IdxN = Pair.first; in SelectGetElementPtr() local 470 if (IdxN == 0) in SelectGetElementPtr() 475 IdxN = FastEmit_ri_(VT, ISD::MUL, IdxN, IdxNIsKill, ElementSize, VT); in SelectGetElementPtr() [all …]
|
D | SelectionDAGBuilder.cpp | 3086 SDValue IdxN = getValue(Idx); in visitGetElementPtr() local 3090 IdxN = DAG.getSExtOrTrunc(IdxN, getCurDebugLoc(), N.getValueType()); in visitGetElementPtr() 3097 IdxN = DAG.getNode(ISD::SHL, getCurDebugLoc(), in visitGetElementPtr() 3098 N.getValueType(), IdxN, in visitGetElementPtr() 3102 IdxN = DAG.getNode(ISD::MUL, getCurDebugLoc(), in visitGetElementPtr() 3103 N.getValueType(), IdxN, Scale); in visitGetElementPtr() 3108 N.getValueType(), N, IdxN); in visitGetElementPtr()
|
/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-7.0/llvm/lib/CodeGen/SelectionDAG/ |
D | FastISel.cpp | 507 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 508 if (IdxN == 0) in getRegForGEPIndex() 518 IdxN = fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::SIGN_EXTEND, IdxN, in getRegForGEPIndex() 522 IdxN = in getRegForGEPIndex() 523 fastEmit_r(IdxVT.getSimpleVT(), PtrVT, ISD::TRUNCATE, IdxN, IdxNIsKill); in getRegForGEPIndex() 526 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 701 uint64_t IdxN = CI->getValue().sextOrTrunc(64).getSExtValue(); in selectGetElementPtr() local 702 TotalOffs += DL.getTypeAllocSize(Ty) * IdxN; in selectGetElementPtr() 723 unsigned IdxN = Pair.first; in selectGetElementPtr() local 725 if (!IdxN) // Unhandled operand. Halt "fast" selection and bail. in selectGetElementPtr() [all …]
|
D | SelectionDAGBuilder.cpp | 3531 SDValue IdxN = getValue(Idx); in visitGetElementPtr() local 3533 if (!IdxN.getValueType().isVector() && VectorWidth) { in visitGetElementPtr() 3534 EVT VT = EVT::getVectorVT(*Context, IdxN.getValueType(), VectorWidth); in visitGetElementPtr() 3535 IdxN = DAG.getSplatBuildVector(VT, dl, IdxN); in visitGetElementPtr() 3540 IdxN = DAG.getSExtOrTrunc(IdxN, dl, N.getValueType()); in visitGetElementPtr() 3547 IdxN = DAG.getNode(ISD::SHL, dl, in visitGetElementPtr() 3548 N.getValueType(), IdxN, in visitGetElementPtr() 3549 DAG.getConstant(Amt, dl, IdxN.getValueType())); in visitGetElementPtr() 3551 SDValue Scale = DAG.getConstant(ElementSize, dl, IdxN.getValueType()); in visitGetElementPtr() 3552 IdxN = DAG.getNode(ISD::MUL, dl, in visitGetElementPtr() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/ |
D | HexagonISelLoweringHVX.cpp | 383 auto *IdxN = dyn_cast<ConstantSDNode>(SplatV.getNode()); in buildHvxVectorReg() local 384 if (IdxN && IdxN->isNullValue()) in buildHvxVectorReg() 847 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode()); in insertHvxSubvectorReg() local 848 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorReg() 871 if (RolBase != 4 || !IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorReg() 907 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV.getNode()); in insertHvxSubvectorPred() local 908 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorPred() 922 if (!IdxN || !IdxN->isNullValue()) { in insertHvxSubvectorPred()
|
D | HexagonISelLowering.cpp | 2311 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV); in extractVector() local 2319 if (IdxN) { in extractVector() 2323 if (IdxN->isNullValue() && ValTy.getSizeInBits() == 1) in extractVector() 2368 if (IdxN) { in extractVector() 2369 unsigned Off = IdxN->getZExtValue() * ElemWidth; in extractVector()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AArch64/ |
D | AArch64FastISel.cpp | 4905 unsigned IdxN = getRegForValue(Idx); in getRegForGEPIndex() local 4906 if (IdxN == 0) in getRegForGEPIndex() 4916 IdxN = emitIntExt(IdxVT.getSimpleVT(), IdxN, PtrVT, /*IsZExt=*/false); in getRegForGEPIndex() 4920 return std::pair<unsigned, bool>(IdxN, IdxNIsKill); in getRegForGEPIndex() 4968 unsigned IdxN = Pair.first; in selectGetElementPtr() local 4970 if (!IdxN) in selectGetElementPtr() 4977 IdxN = emitMul_rr(VT, IdxN, IdxNIsKill, C, true); in selectGetElementPtr() 4978 if (!IdxN) in selectGetElementPtr() 4982 N = fastEmit_rr(VT, VT, ISD::ADD, N, NIsKill, IdxN, IdxNIsKill); in selectGetElementPtr()
|
/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()
|