Home
last modified time | relevance | path

Searched refs:IdxV (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonISelLoweringHVX.cpp586 HexagonTargetLowering::extractHvxElementReg(SDValue VecV, SDValue IdxV, in extractHvxElementReg() argument
594 SDValue ByteIdx = convertToByteIndex(IdxV, ElemTy, DAG); in extractHvxElementReg()
603 SDValue SubIdx = getIndexInWord32(IdxV, ElemTy, DAG); in extractHvxElementReg()
610 HexagonTargetLowering::extractHvxElementPred(SDValue VecV, SDValue IdxV, in extractHvxElementPred() argument
621 IdxV = DAG.getNode(ISD::MUL, dl, MVT::i32, IdxV, ScV); in extractHvxElementPred()
623 SDValue ExtB = extractHvxElementReg(ByteVec, IdxV, dl, MVT::i32, DAG); in extractHvxElementPred()
629 HexagonTargetLowering::insertHvxElementReg(SDValue VecV, SDValue IdxV, in insertHvxElementReg() argument
651 SDValue ByteIdx = convertToByteIndex(IdxV, ElemTy, DAG); in insertHvxElementReg()
664 SDValue SubIdx = getIndexInWord32(IdxV, ElemTy, DAG); in insertHvxElementReg()
674 HexagonTargetLowering::insertHvxElementPred(SDValue VecV, SDValue IdxV, in insertHvxElementPred() argument
[all …]
DHexagonISelLowering.h326 SDValue extractVector(SDValue VecV, SDValue IdxV, const SDLoc &dl,
328 SDValue insertVector(SDValue VecV, SDValue ValV, SDValue IdxV,
400 SDValue extractHvxElementReg(SDValue VecV, SDValue IdxV, const SDLoc &dl,
402 SDValue extractHvxElementPred(SDValue VecV, SDValue IdxV, const SDLoc &dl,
404 SDValue insertHvxElementReg(SDValue VecV, SDValue IdxV, SDValue ValV,
406 SDValue insertHvxElementPred(SDValue VecV, SDValue IdxV, SDValue ValV,
408 SDValue extractHvxSubvectorReg(SDValue VecV, SDValue IdxV, const SDLoc &dl,
410 SDValue extractHvxSubvectorPred(SDValue VecV, SDValue IdxV, const SDLoc &dl,
412 SDValue insertHvxSubvectorReg(SDValue VecV, SDValue SubV, SDValue IdxV,
414 SDValue insertHvxSubvectorPred(SDValue VecV, SDValue SubV, SDValue IdxV,
DHexagonISelLowering.cpp2301 HexagonTargetLowering::extractVector(SDValue VecV, SDValue IdxV, in extractVector() argument
2311 auto *IdxN = dyn_cast<ConstantSDNode>(IdxV); in extractVector()
2331 SDValue I0 = DAG.getNode(ISD::MUL, dl, MVT::i32, IdxV, M0); in extractVector()
2343 assert(ty(IdxV) == MVT::i32); in extractVector()
2344 SDValue S0 = DAG.getNode(ISD::MUL, dl, MVT::i32, IdxV, in extractVector()
2384 if (ty(IdxV) != MVT::i32) in extractVector()
2385 IdxV = DAG.getZExtOrTrunc(IdxV, dl, MVT::i32); in extractVector()
2386 SDValue OffV = DAG.getNode(ISD::MUL, dl, MVT::i32, IdxV, in extractVector()
2399 HexagonTargetLowering::insertVector(SDValue VecV, SDValue ValV, SDValue IdxV, in insertVector() argument
2422 SDValue Idx = DAG.getNode(ISD::MUL, dl, MVT::i32, IdxV, in insertVector()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/IPO/
DGlobalOpt.cpp277 unsigned IdxV = CI->getZExtValue(); in getAggregateConstantElement() local
280 if (IdxV < CS->getNumOperands()) return CS->getOperand(IdxV); in getAggregateConstantElement()
282 if (IdxV < CA->getNumOperands()) return CA->getOperand(IdxV); in getAggregateConstantElement()
284 if (IdxV < CP->getNumOperands()) return CP->getOperand(IdxV); in getAggregateConstantElement()
287 if (IdxV < STy->getNumElements()) in getAggregateConstantElement()
288 return Constant::getNullValue(STy->getElementType(IdxV)); in getAggregateConstantElement()
295 if (IdxV < STy->getNumElements()) in getAggregateConstantElement()
296 return UndefValue::get(STy->getElementType(IdxV)); in getAggregateConstantElement()