Lines Matching refs:ElemTy
246 for (MVT ElemTy : Subtarget.getHVXElementTypes()) { in initializeHVXLowering() local
247 if (ElemTy == MVT::i1) in initializeHVXLowering()
249 int ElemWidth = ElemTy.getFixedSizeInBits(); in initializeHVXLowering()
252 MVT VecTy = MVT::getVectorVT(ElemTy, N); in initializeHVXLowering()
271 MVT ElemTy = VecTy.getVectorElementType(); in getPreferredHvxVectorAction() local
276 if (ElemTy == MVT::i1 && VecLen == 2*HwLen) in getPreferredHvxVectorAction()
279 if (ElemTy == MVT::i1) in getPreferredHvxVectorAction()
280 ElemTy = MVT::i8; in getPreferredHvxVectorAction()
286 if (llvm::find(Tys, ElemTy) != Tys.end()) { in getPreferredHvxVectorAction()
314 MVT ElemTy = Tys.first.getVectorElementType(); in typeJoin() local
315 return MVT::getVectorVT(ElemTy, Tys.first.getVectorNumElements() + in typeJoin()
330 MVT ElemTy = VecTy.getVectorElementType(); in typeExtElem() local
331 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() * Factor); in typeExtElem()
337 MVT ElemTy = VecTy.getVectorElementType(); in typeTruncElem() local
338 MVT NewElemTy = MVT::getIntegerVT(ElemTy.getSizeInBits() / Factor); in typeTruncElem()
343 HexagonTargetLowering::opCastElem(SDValue Vec, MVT ElemTy, in opCastElem() argument
345 if (ty(Vec).getVectorElementType() == ElemTy) in opCastElem()
347 MVT CastTy = tyVector(Vec.getValueType().getSimpleVT(), ElemTy); in opCastElem()
411 HexagonTargetLowering::convertToByteIndex(SDValue ElemIdx, MVT ElemTy, in convertToByteIndex() argument
416 unsigned ElemWidth = ElemTy.getSizeInBits(); in convertToByteIndex()
427 HexagonTargetLowering::getIndexInWord32(SDValue Idx, MVT ElemTy, in getIndexInWord32() argument
429 unsigned ElemWidth = ElemTy.getSizeInBits(); in getIndexInWord32()
449 MVT ElemTy = OpTy.getVectorElementType(); in getByteShuffle() local
450 if (ElemTy == MVT::i8) in getByteShuffle()
452 assert(ElemTy.getSizeInBits() >= 8); in getByteShuffle()
455 unsigned ElemSize = ElemTy.getSizeInBits() / 8; in getByteShuffle()
479 MVT ElemTy = VecTy.getVectorElementType(); in buildHvxVectorReg() local
480 unsigned ElemWidth = ElemTy.getSizeInBits(); in buildHvxVectorReg()
796 MVT ElemTy = ty(VecV).getVectorElementType(); in extractHvxElementReg() local
798 unsigned ElemWidth = ElemTy.getSizeInBits(); in extractHvxElementReg()
802 SDValue ByteIdx = convertToByteIndex(IdxV, ElemTy, DAG); in extractHvxElementReg()
805 if (ElemTy == MVT::i32) in extractHvxElementReg()
811 SDValue SubIdx = getIndexInWord32(IdxV, ElemTy, DAG); in extractHvxElementReg()
813 SDValue ExVec = DAG.getBitcast(tyVector(ty(ExWord), ElemTy), ExWord); in extractHvxElementReg()
814 return extractVector(ExVec, SubIdx, dl, ElemTy, MVT::i32, DAG); in extractHvxElementReg()
839 MVT ElemTy = ty(VecV).getVectorElementType(); in insertHvxElementReg() local
841 unsigned ElemWidth = ElemTy.getSizeInBits(); in insertHvxElementReg()
859 SDValue ByteIdx = convertToByteIndex(IdxV, ElemTy, DAG); in insertHvxElementReg()
860 if (ElemTy == MVT::i32) in insertHvxElementReg()
872 SDValue SubIdx = getIndexInWord32(IdxV, ElemTy, DAG); in insertHvxElementReg()
873 MVT SubVecTy = tyVector(ty(Ext), ElemTy); in insertHvxElementReg()
875 ValV, SubIdx, dl, ElemTy, DAG); in insertHvxElementReg()
903 MVT ElemTy = VecTy.getVectorElementType(); in extractHvxSubvectorReg() local
904 unsigned ElemWidth = ElemTy.getSizeInBits(); in extractHvxSubvectorReg()
1012 MVT ElemTy = VecTy.getVectorElementType(); in insertHvxSubvectorReg() local
1013 unsigned ElemWidth = ElemTy.getSizeInBits(); in insertHvxSubvectorReg()
1016 MVT SingleTy = MVT::getVectorVT(ElemTy, (8*HwLen)/ElemWidth); in insertHvxSubvectorReg()
1340 MVT ElemTy = ty(VecV).getVectorElementType(); in LowerHvxExtractElement() local
1343 if (ElemTy == MVT::i1) in LowerHvxExtractElement()
1356 MVT ElemTy = ty(VecV).getVectorElementType(); in LowerHvxInsertElement() local
1357 if (ElemTy == MVT::i1) in LowerHvxInsertElement()
1375 MVT ElemTy = SrcTy.getVectorElementType(); in LowerHvxExtractSubvector() local
1376 if (ElemTy == MVT::i1) in LowerHvxExtractSubvector()
1392 MVT ElemTy = VecTy.getVectorElementType(); in LowerHvxInsertSubvector() local
1393 if (ElemTy == MVT::i1) in LowerHvxInsertSubvector()
1407 MVT ElemTy = ty(InpV).getVectorElementType(); in LowerHvxAnyExt() local
1408 if (ElemTy == MVT::i1 && Subtarget.isHVXVectorType(ResTy)) in LowerHvxAnyExt()
1417 MVT ElemTy = ty(InpV).getVectorElementType(); in LowerHvxSignExt() local
1418 if (ElemTy == MVT::i1 && Subtarget.isHVXVectorType(ResTy)) in LowerHvxSignExt()
1427 MVT ElemTy = ty(InpV).getVectorElementType(); in LowerHvxZeroExt() local
1428 if (ElemTy == MVT::i1 && Subtarget.isHVXVectorType(ResTy)) in LowerHvxZeroExt()
1443 MVT ElemTy = ty(InpV).getVectorElementType(); in LowerHvxCttz() local
1444 unsigned ElemWidth = ElemTy.getSizeInBits(); in LowerHvxCttz()
1470 MVT ElemTy = ResTy.getVectorElementType(); in LowerHvxMulh() local
1476 if (ElemTy == MVT::i8 || ElemTy == MVT::i16) { in LowerHvxMulh()
1484 unsigned MpyOpc = ElemTy == MVT::i8 in LowerHvxMulh()
1494 VectorPair P = opSplit(opCastElem(M, ElemTy, DAG), dl, DAG); in LowerHvxMulh()
1499 assert(ElemTy == MVT::i32); in LowerHvxMulh()