Home
last modified time | relevance | path

Searched refs:VecWidth (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAutoUpgrade.cpp1843 unsigned VecWidth = Ty->getPrimitiveSizeInBits(); in upgradeX86VPERMT2Intrinsics() local
1847 if (VecWidth == 128 && EltWidth == 32 && IsFloat) in upgradeX86VPERMT2Intrinsics()
1849 else if (VecWidth == 128 && EltWidth == 32 && !IsFloat) in upgradeX86VPERMT2Intrinsics()
1851 else if (VecWidth == 128 && EltWidth == 64 && IsFloat) in upgradeX86VPERMT2Intrinsics()
1853 else if (VecWidth == 128 && EltWidth == 64 && !IsFloat) in upgradeX86VPERMT2Intrinsics()
1855 else if (VecWidth == 256 && EltWidth == 32 && IsFloat) in upgradeX86VPERMT2Intrinsics()
1857 else if (VecWidth == 256 && EltWidth == 32 && !IsFloat) in upgradeX86VPERMT2Intrinsics()
1859 else if (VecWidth == 256 && EltWidth == 64 && IsFloat) in upgradeX86VPERMT2Intrinsics()
1861 else if (VecWidth == 256 && EltWidth == 64 && !IsFloat) in upgradeX86VPERMT2Intrinsics()
1863 else if (VecWidth == 512 && EltWidth == 32 && IsFloat) in upgradeX86VPERMT2Intrinsics()
[all …]
H A DVerifier.cpp6455 unsigned VecWidth = VecTy->getElementCount().getKnownMinValue(); in visitIntrinsicCall() local
6458 Check((VecWidth % AccWidth) == 0, in visitIntrinsicCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonTargetTransformInfo.cpp182 unsigned VecWidth = VecTy->getPrimitiveSizeInBits().getFixedValue(); in getMemoryOpCost() local
189 if (VecWidth % RegWidth == 0) in getMemoryOpCost()
190 return VecWidth / RegWidth; in getMemoryOpCost()
196 unsigned NumLoads = alignTo(VecWidth, AlignWidth) / AlignWidth; in getMemoryOpCost()
208 unsigned NumLoads = alignTo(VecWidth, AlignWidth) / AlignWidth; in getMemoryOpCost()
H A DHexagonISelLowering.cpp2703 unsigned VecWidth = VecTy.getSizeInBits(); in extractVector() local
2706 assert((VecWidth % ElemWidth) == 0); in extractVector()
2707 assert(VecWidth == 32 || VecWidth == 64); in extractVector()
2718 if (VecWidth == 64 && ValWidth == 32) { in extractVector()
2752 unsigned VecWidth = VecTy.getSizeInBits(); in extractVectorPred() local
2754 assert(VecWidth == VecTy.getVectorNumElements() && in extractVectorPred()
2756 assert(VecWidth == 8 || VecWidth == 4 || VecWidth == 2); in extractVectorPred()
2769 SDValue M0 = DAG.getConstant(8 / VecWidth, dl, MVT::i32); in extractVectorPred()
2778 unsigned Scale = VecWidth / ValWidth; in extractVectorPred()
2783 unsigned VecRep = 8 / VecWidth; in extractVectorPred()
[all …]
H A DHexagonSubtarget.cpp204 unsigned VecWidth = VecTy.getSizeInBits(); in isHVXVectorType() local
205 if (VecWidth != 8 * HwLen && VecWidth != 16 * HwLen) in isHVXVectorType()
H A DHexagonISelLoweringHVX.cpp479 unsigned VecWidth = VecTy.getSizeInBits(); in getPreferredHvxVectorAction() local
481 if (VecWidth > 2*HwWidth) in getPreferredHvxVectorAction()
485 if (HaveThreshold && 8*HvxWidenThreshold <= VecWidth) in getPreferredHvxVectorAction()
487 if (VecWidth >= HwWidth/2 && VecWidth < HwWidth) in getPreferredHvxVectorAction()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InterleavedAccess.cpp170 Type *VecWidth = VecInst->getType(); in decompose() local
171 (void)VecWidth; in decompose()
172 assert(VecWidth->isVectorTy() && in decompose()
173 DL.getTypeSizeInBits(VecWidth) >= in decompose()
198 unsigned VecLength = DL.getTypeSizeInBits(VecWidth); in decompose()
H A DX86ISelDAGToDAG.cpp465 SDValue getExtractVEXTRACTImmediate(SDNode *N, unsigned VecWidth, in getExtractVEXTRACTImmediate() argument
467 assert((VecWidth == 128 || VecWidth == 256) && "Unexpected vector width"); in getExtractVEXTRACTImmediate()
470 return getI8Imm((Index * VecVT.getScalarSizeInBits()) / VecWidth, DL); in getExtractVEXTRACTImmediate()
473 SDValue getInsertVINSERTImmediate(SDNode *N, unsigned VecWidth, in getInsertVINSERTImmediate() argument
475 assert((VecWidth == 128 || VecWidth == 256) && "Unexpected vector width"); in getInsertVINSERTImmediate()
478 return getI8Imm((Index * VecVT.getScalarSizeInBits()) / VecWidth, DL); in getInsertVINSERTImmediate()
481 SDValue getPermuteVINSERTCommutedImmediate(SDNode *N, unsigned VecWidth, in getPermuteVINSERTCommutedImmediate() argument
483 assert(VecWidth == 128 && "Unexpected vector width"); in getPermuteVINSERTCommutedImmediate()
486 uint64_t InsertIdx = (Index * VecVT.getScalarSizeInBits()) / VecWidth; in getPermuteVINSERTCommutedImmediate()
H A DX86MCInstLower.cpp1626 int SclWidth, int VecWidth, in printZeroUpperMove() argument
1638 for (int I = 1, E = VecWidth / SclWidth; I < E; ++I) { in printZeroUpperMove()
H A DX86ISelLowering.cpp56972 unsigned VecWidth = SrcVecVT.getSizeInBits(); in combineToFPTruncExtElt() local
56973 unsigned NumElts = VecWidth / DestWidth; in combineToFPTruncExtElt()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DOpenCLBuiltins.td175 int VecWidth = 1;
192 let VecWidth = _VecWidth;
207 let VecWidth = _Ty.VecWidth;
219 let VecWidth = _Ty.VecWidth;
231 let VecWidth = _Ty.VecWidth;
242 let VecWidth = 0;
303 // The VecWidth field is ignored for GenericTypes. Use VectorList instead.
304 let VecWidth = 0;
H A DSemaDeclAttr.cpp3639 uint32_t VecWidth; in handleMinVectorWidthAttr() local
3640 if (!S.checkUInt32Argument(AL, E, VecWidth)) { in handleMinVectorWidthAttr()
3646 if (Existing && Existing->getVectorWidth() != VecWidth) { in handleMinVectorWidthAttr()
3651 D->addAttr(::new (S.Context) MinVectorWidthAttr(S.Context, AL, VecWidth)); in handleMinVectorWidthAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/
H A DX86.cpp538 unsigned VecWidth = Ty->getPrimitiveSizeInBits(); in EmitX86Ternlog() local
541 if (VecWidth == 128 && EltWidth == 32) in EmitX86Ternlog()
543 else if (VecWidth == 256 && EltWidth == 32) in EmitX86Ternlog()
545 else if (VecWidth == 512 && EltWidth == 32) in EmitX86Ternlog()
547 else if (VecWidth == 128 && EltWidth == 64) in EmitX86Ternlog()
549 else if (VecWidth == 256 && EltWidth == 64) in EmitX86Ternlog()
551 else if (VecWidth == 512 && EltWidth == 64) in EmitX86Ternlog()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp427 unsigned VecWidth = VecType->getPrimitiveSizeInBits(); in foldVecTruncToExtElt() local
431 if ((VecWidth % DestWidth != 0) || (ShiftAmount % DestWidth != 0)) in foldVecTruncToExtElt()
436 unsigned NumVecElts = VecWidth / DestWidth; in foldVecTruncToExtElt()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1366 if (const auto *VecWidth = CurFuncDecl->getAttr<MinVectorWidthAttr>()) in StartFunction() local
1367 LargestVectorWidth = VecWidth->getVectorWidth(); in StartFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp1137 unsigned VecWidth = DataTy->getPrimitiveSizeInBits(); in isLegalMaskedLoad() local
1138 if (VecWidth != 128 && VecTy->getElementType()->isFloatingPointTy()) in isLegalMaskedLoad()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp13307 unsigned VecWidth = VT.getSizeInBits(); in isConstantSplat() local
13308 if (MinSplatBits > VecWidth) in isConstantSplat()
13313 SplatValue = APInt(VecWidth, 0); in isConstantSplat()
13314 SplatUndef = APInt(VecWidth, 0); in isConstantSplat()
13344 while (VecWidth > 8) { in isConstantSplat()
13346 if (VecWidth & 1) in isConstantSplat()
13349 unsigned HalfSize = VecWidth / 2; in isConstantSplat()
13363 VecWidth = HalfSize; in isConstantSplat()
13372 SplatBitSize = VecWidth; in isConstantSplat()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DClang.cpp7482 StringRef VecWidth = parseMPreferVectorWidthOption(D.getDiags(), Args); in ConstructJob() local
7483 if (!VecWidth.empty()) in ConstructJob()
7484 CmdArgs.push_back(Args.MakeArgString("-mprefer-vector-width=" + VecWidth)); in ConstructJob()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp485 OptimizationRemarkEmitter *ORE, ElementCount VecWidth, in InnerLoopVectorizer() argument
491 AC(AC), ORE(ORE), VF(VecWidth), in InnerLoopVectorizer()