/netbsd/external/apache2/llvm/dist/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 366 static unsigned getScalarSizeInBits(Type *Ty) { in getScalarSizeInBits() function 402 unsigned ScalarBits = Ty->getScalarSizeInBits(); in getArithmeticInstrCost() 600 unsigned Bits0 = Ty0->getScalarSizeInBits(); in getElSizeLog2Diff() 601 unsigned Bits1 = Ty1->getScalarSizeInBits(); in getElSizeLog2Diff() 643 if (VF == 8 && SrcTy->getScalarSizeInBits() == 64 && in getVectorTruncCost() 644 DstTy->getScalarSizeInBits() == 8) in getVectorTruncCost() 658 unsigned SrcScalarBits = SrcTy->getScalarSizeInBits(); in getVectorBitmaskConversionCost() 731 unsigned DstScalarBits = Dst->getScalarSizeInBits(); in getCastInstrCost() 732 unsigned SrcScalarBits = Src->getScalarSizeInBits(); in getCastInstrCost() 776 if (Src->getScalarSizeInBits() == Dst->getScalarSizeInBits()) in getCastInstrCost() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 387 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated() 400 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated() 415 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated() 433 uint32_t BitWidth = Ty->getScalarSizeInBits(); in canEvaluateTruncated() 733 unsigned DestWidth = DestTy->getScalarSizeInBits(); in visitTrunc() 734 unsigned SrcWidth = SrcTy->getScalarSizeInBits(); in visitTrunc() 1409 assert(V->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits() && in canEvaluateSExtd() 1904 if (DestType->getScalarSizeInBits() > XType->getScalarSizeInBits()) { in foldItoFPtoI() 1910 if (DestType->getScalarSizeInBits() < XType->getScalarSizeInBits()) in foldItoFPtoI() 1989 unsigned TySize = Ty->getScalarSizeInBits(); in visitPtrToInt() [all …]
|
H A D | InstCombineShifts.cpp | 41 (Sh0->getType()->getScalarSizeInBits() - 1) + in canTryToConstantAddTwoShiftAmounts() 42 (Sh1->getType()->getScalarSizeInBits() - 1); in canTryToConstantAddTwoShiftAmounts() 116 unsigned XBitWidth = X->getType()->getScalarSizeInBits(); in reassociateShiftAmtsOfTwoSameDirectionShifts() 350 APInt Threshold(Ty->getScalarSizeInBits(), Ty->getScalarSizeInBits()); in foldShiftOfShiftedLogic() 536 unsigned TypeWidth = ShType->getScalarSizeInBits(); in foldShiftedShift() 686 unsigned TypeBits = Ty->getScalarSizeInBits(); in FoldShiftByConstant() 715 unsigned SrcSize = SrcTy->getScalarSizeInBits(); in FoldShiftByConstant() 909 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitShl() 1054 unsigned BitWidth = Ty->getScalarSizeInBits(); in visitLShr() 1108 assert(ShAmt < X->getType()->getScalarSizeInBits() && in visitLShr() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/ARM/ |
H A D | MVEGatherScatterLowering.cpp | 189 ->getScalarSizeInBits(); in checkOffsetSize() 253 ->getScalarSizeInBits() != 32) in checkGEP() 260 if ((Ty->getElementType()->getScalarSizeInBits() < in checkGEP() 261 OffsetType->getElementType()->getScalarSizeInBits())) { in checkGEP() 406 if (Ty->getNumElements() != 4 || Ty->getScalarSizeInBits() != 32) in tryCreateMaskedGatherBase() 493 OriginalTy->getScalarSizeInBits()); in tryCreateMaskedGatherOffset() 635 MemoryTy->getScalarSizeInBits()); in tryCreateMaskedScatterOffset() 645 Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedScatterOffset() 652 Builder.getInt32(MemoryTy->getScalarSizeInBits()), in tryCreateMaskedScatterOffset() 666 Ty->getScalarSizeInBits() != 32) in tryCreateIncrementingGatScat() [all …]
|
H A D | MVELaneInterleavingPass.cpp | 289 unsigned BaseElts = VT->getScalarSizeInBits() == 16 in tryInterleave() 291 : (VT->getScalarSizeInBits() == 8 ? 16 : 0); in tryInterleave() 296 if (Start->getOperand(0)->getType()->getScalarSizeInBits() != in tryInterleave() 297 VT->getScalarSizeInBits() * 2) { in tryInterleave()
|
H A D | ARMTargetTransformInfo.cpp | 214 assert(II.getArgOperand(CarryOp)->getType()->getScalarSizeInBits() == 32 && in instCombineIntrinsic() 805 ValTy->isVectorTy() && ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost() 818 ValTy->getScalarSizeInBits() <= 32) in getVectorInstrCost() 1036 unsigned EltWidth = DataTy->getScalarSizeInBits(); in isLegalMaskedLoad() 1057 unsigned EltWidth = Ty->getScalarSizeInBits(); in isLegalMaskedGather() 1505 unsigned EltSize = VTy->getScalarSizeInBits(); in getGatherScatterOpCost() 1537 cast<Instruction>(Us)->getType()->getScalarSizeInBits(); in getGatherScatterOpCost() 1582 if (ZExt->getOperand(0)->getType()->getScalarSizeInBits() <= ExtSize) in getGatherScatterOpCost() 1663 LT.second.getScalarSizeInBits() == VT->getScalarSizeInBits() ? 1 : 4; in getIntrinsicInstrCost() 2027 if (T->getScalarSizeInBits() > 32) { in canTailPredicateLoop() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Support/ |
H A D | LowLevelTypeImpl.h | 111 return getScalarSizeInBits(); in getSizeInBits() 112 return getScalarSizeInBits() * getNumElements(); in getSizeInBits() 163 unsigned getScalarSizeInBits() const { in getScalarSizeInBits() function 191 return pointer(getAddressSpace(), getScalarSizeInBits()); in getElementType() 193 return scalar(getScalarSizeInBits()); in getElementType()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/AggressiveInstCombine/ |
H A D | TruncInstCombine.cpp | 155 unsigned TruncBitWidth = DstTy->getScalarSizeInBits(); in getMinBitWidth() 157 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getMinBitWidth() 226 MinBitWidth = Ty ? Ty->getScalarSizeInBits() : OrigBitWidth; in getMinBitWidth() 263 I->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType() 271 CurrentTruncInst->getOperand(0)->getType()->getScalarSizeInBits(); in getBestTruncatedType()
|
H A D | AggressiveInstCombine.cpp | 84 if (!isPowerOf2_32(I.getType()->getScalarSizeInBits())) in foldGuardedFunnelShift() 92 unsigned Width = V->getType()->getScalarSizeInBits(); in foldGuardedFunnelShift() 276 MaskOps MOps(I.getType()->getScalarSizeInBits(), MatchAllBitsSet); in foldAnyOrAllBitsSet() 317 unsigned Len = Ty->getScalarSizeInBits(); in tryToRecognizePopCount()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
H A D | GISelKnownBits.cpp | 76 unsigned BitWidth = Ty.getScalarSizeInBits(); in signBitIsZero() 132 unsigned BitWidth = DstTy.getScalarSizeInBits(); in computeKnownBitsImpl() 534 const unsigned TyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits() 558 unsigned Tmp = DstTy.getScalarSizeInBits() - SrcTy.getScalarSizeInBits(); in computeNumSignBits() 592 unsigned DstTyBits = DstTy.getScalarSizeInBits(); in computeNumSignBits() 593 unsigned NumSrcBits = SrcTy.getScalarSizeInBits(); in computeNumSignBits()
|
H A D | LegalityPredicates.cpp | 137 return QueryTy.getScalarSizeInBits() < Size; in scalarOrEltNarrowerThan() 145 return QueryTy.getScalarSizeInBits() > Size; in scalarOrEltWiderThan() 152 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2()
|
H A D | LegalizeMutations.cpp | 51 const LLT NewEltTy = LLT::scalar(NewTy.getScalarSizeInBits()); in changeElementSizeTo() 61 std::max(1u << Log2_32_Ceil(Ty.getScalarSizeInBits()), Min); in widenScalarOrEltToNextPow2()
|
H A D | LegalizerInfo.cpp | 171 if (NewTy.getScalarSizeInBits() >= OldTy.getScalarSizeInBits()) in mutationIsSane() 175 if (NewTy.getScalarSizeInBits() <= OldTy.getScalarSizeInBits()) in mutationIsSane() 667 findAction(ElemSizeVec, Aspect.Type.getScalarSizeInBits()); in findVectorLegalAction() 674 IntermediateType.getScalarSizeInBits()); in findVectorLegalAction() 683 IntermediateType.getScalarSizeInBits())}; in findVectorLegalAction()
|
H A D | CallLowering.cpp | 334 PartLLT.getScalarSizeInBits() > LLTy.getScalarSizeInBits() && in buildCopyFromRegs() 343 SrcReg = B.buildAssertSExt(LocTy, SrcReg, LLTy.getScalarSizeInBits()) in buildCopyFromRegs() 346 SrcReg = B.buildAssertZExt(LocTy, SrcReg, LLTy.getScalarSizeInBits()) in buildCopyFromRegs() 377 PartLLT.getScalarSizeInBits() == LLTy.getScalarSizeInBits() * 2 && in buildCopyFromRegs() 461 PartTy.getScalarSizeInBits() > SrcTy.getScalarSizeInBits()) { in buildCopyToRegs() 1101 NarrowTy.getScalarSizeInBits()) in buildExtensionHint() 1107 NarrowTy.getScalarSizeInBits()) in buildExtensionHint()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/RISCV/ |
H A D | RISCVISelDAGToDAG.cpp | 168 unsigned ScalarSize = VT.getScalarSizeInBits(); in selectVLSEG() 209 unsigned ScalarSize = VT.getScalarSizeInBits(); in selectVLSEGFF() 253 unsigned ScalarSize = VT.getScalarSizeInBits(); in selectVLXSEG() 304 unsigned ScalarSize = VT.getScalarSizeInBits(); in selectVSSEG() 334 unsigned ScalarSize = VT.getScalarSizeInBits(); in selectVSXSEG() 773 unsigned ScalarSize = VT.getScalarSizeInBits(); in Select() 814 unsigned ScalarSize = VT.getScalarSizeInBits(); in Select() 844 unsigned ScalarSize = VT.getScalarSizeInBits(); in Select() 965 unsigned ScalarSize = VT.getScalarSizeInBits(); in Select() 1005 unsigned ScalarSize = VT.getScalarSizeInBits(); in Select() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.h | 841 scalarOrEltNarrowerThan(TypeIdx, Ty.getScalarSizeInBits()), in minScalarOrElt() 852 TypeIdx, Ty.getScalarSizeInBits())), in minScalarOrEltIf() 870 scalarOrEltWiderThan(TypeIdx, Ty.getScalarSizeInBits()), in maxScalarOrElt() 919 return Query.Types[LargeTypeIdx].getScalarSizeInBits() > in minScalarSameAs() 930 return Query.Types[NarrowTypeIdx].getScalarSizeInBits() < in maxScalarSameAs() 949 return Query.Types[LargeTypeIdx].getScalarSizeInBits() > in minScalarEltSameAsIf() 950 Query.Types[TypeIdx].getScalarSizeInBits() && in minScalarEltSameAsIf() 966 return Query.Types[SmallTypeIdx].getScalarSizeInBits() < in maxScalarEltSameAsIf() 967 Query.Types[TypeIdx].getScalarSizeInBits() && in maxScalarEltSameAsIf()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | BDCE.cpp | 119 const uint32_t SrcBitSize = SE->getSrcTy()->getScalarSizeInBits(); in bitTrackingDCE() 121 const uint32_t DestBitSize = DstTy->getScalarSizeInBits(); in bitTrackingDCE()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/IR/ |
H A D | Instructions.cpp | 2710 DestTy->getScalarSizeInBits(); in isNoopCast() 2713 SrcTy->getScalarSizeInBits(); in isNoopCast() 2993 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateZExtOrBitCast() 3001 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateZExtOrBitCast() 3009 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateSExtOrBitCast() 3017 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateSExtOrBitCast() 3025 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateTruncOrBitCast() 3033 if (S->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in CreateTruncOrBitCast() 3118 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast() 3132 unsigned DstBits = Ty->getScalarSizeInBits(); in CreateIntegerCast() [all …]
|
H A D | Constants.cpp | 2016 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getZExtOrBitCast() 2022 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getSExtOrBitCast() 2028 if (C->getType()->getScalarSizeInBits() == Ty->getScalarSizeInBits()) in getTruncOrBitCast() 2062 unsigned SrcBits = C->getType()->getScalarSizeInBits(); in getIntegerCast() 2063 unsigned DstBits = Ty->getScalarSizeInBits(); in getIntegerCast() 2075 unsigned DstBits = Ty->getScalarSizeInBits(); in getFPCast() 2091 assert(C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getTrunc() 2105 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getSExt() 2119 assert(C->getType()->getScalarSizeInBits() < Ty->getScalarSizeInBits()&& in getZExt() 2132 C->getType()->getScalarSizeInBits() > Ty->getScalarSizeInBits()&& in getFPTrunc() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeVectorOps.cpp | 983 unsigned BW = VT.getScalarSizeInBits(); in ExpandSEXTINREG() 984 unsigned OrigBW = OrigTy.getScalarSizeInBits(); in ExpandSEXTINREG() 1004 assert((VT.getSizeInBits() % SrcVT.getScalarSizeInBits()) == 0 && in ExpandANY_EXTEND_VECTOR_INREG() 1006 NumSrcElements = VT.getSizeInBits() / SrcVT.getScalarSizeInBits(); in ExpandANY_EXTEND_VECTOR_INREG() 1041 unsigned EltWidth = VT.getScalarSizeInBits(); in ExpandSIGN_EXTEND_VECTOR_INREG() 1042 unsigned SrcEltWidth = SrcVT.getScalarSizeInBits(); in ExpandSIGN_EXTEND_VECTOR_INREG() 1063 assert((VT.getSizeInBits() % SrcVT.getScalarSizeInBits()) == 0 && in ExpandZERO_EXTEND_VECTOR_INREG() 1092 int ScalarSizeInBytes = VT.getScalarSizeInBits() / 8; in createBSWAPShuffleMask() 1130 unsigned ScalarSizeInBits = VT.getScalarSizeInBits(); in ExpandBITREVERSE() 1205 APInt::getAllOnesValue(VT.getScalarSizeInBits()), DL, VT); in ExpandVSELECT() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/Analysis/ |
H A D | TargetTransformInfoImpl.h | 485 unsigned SrcSize = Src->getScalarSizeInBits(); in getCastInstrCost() 492 unsigned DstSize = Dst->getScalarSizeInBits(); in getCastInstrCost() 805 return Cast->getSrcTy()->getScalarSizeInBits() - 1; in minRequiredElementSize() 810 return Cast->getSrcTy()->getScalarSizeInBits(); in minRequiredElementSize() 814 return Val->getType()->getScalarSizeInBits(); in minRequiredElementSize() 1037 assert(Op0->getType()->getScalarSizeInBits() == 1 && in getUserCost() 1038 Op1->getType()->getScalarSizeInBits() == 1); in getUserCost()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/ |
H A D | SanitizerCoverage.cpp | 796 if (Cond->getType()->getScalarSizeInBits() > in InjectTraceForSwitch() 797 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch() 801 ConstantInt::get(Int64Ty, Cond->getType()->getScalarSizeInBits())); in InjectTraceForSwitch() 802 if (Cond->getType()->getScalarSizeInBits() < in InjectTraceForSwitch() 803 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch() 807 if (C->getType()->getScalarSizeInBits() < in InjectTraceForSwitch() 808 Int64Ty->getScalarSizeInBits()) in InjectTraceForSwitch()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | TypePromotion.cpp | 208 return V->getType()->getScalarSizeInBits() == TypeSize; in EqualTypeSize() 212 return V->getType()->getScalarSizeInBits() <= TypeSize; in LessOrEqualTypeSize() 216 return V->getType()->getScalarSizeInBits() > TypeSize; in GreaterThanTypeSize() 220 return V->getType()->getScalarSizeInBits() < TypeSize; in LessThanTypeSize() 665 unsigned NumBits = DestTy->getScalarSizeInBits(); in ConvertTruncs()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Support/ |
H A D | LowLevelType.cpp | 43 OS << "s" << getScalarSizeInBits(); in print()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Analysis/ |
H A D | DemandedBits.cpp | 354 if (AliveBits.try_emplace(&I, T->getScalarSizeInBits(), 0).second) in performAnalysis() 365 AliveBits[J] = APInt::getAllOnesValue(T->getScalarSizeInBits()); in performAnalysis() 409 unsigned BitWidth = T->getScalarSizeInBits(); in performAnalysis()
|