Home
last modified time | relevance | path

Searched refs:isPowerOf2_32 (Results 1 – 25 of 111) sorted by relevance

12345

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp126 if (!isPowerOf2_32( in expandReductions()
148 if (!isPowerOf2_32(NumElts)) in expandReductions()
174 if (!isPowerOf2_32( in expandReductions()
186 if (!isPowerOf2_32( in expandReductions()
H A DTargetLoweringBase.cpp1032 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
1157 if (VT.isScalableVector() && !isPowerOf2_32(EC.getKnownMinValue())) in getVectorTypeBreakdownMVT()
1163 if (!isPowerOf2_32(EC.getKnownMinValue())) { in getVectorTypeBreakdownMVT()
1496 if (isPowerOf2_32(EC.getKnownMinValue())) { in computeRegisterProperties()
1651 if (!isPowerOf2_32(EltCnt.getKnownMinValue())) { in getVectorTypeBreakdown()
H A DExecutionDomainFix.cpp320 if (isPowerOf2_32(available)) { in visitSoftInstr()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DLegalityPredicates.cpp152 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2()
204 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
H A DLegalizerHelper.cpp3369 if (!isPowerOf2_32(MemSizeInBits)) { in lowerLoad()
3488 if (!isPowerOf2_32(MemSizeInBits)) { in lowerStore()
3956 if (isPowerOf2_32(NElts)) { in clampDynamicVectorIndex()
4674 if (!isPowerOf2_32(DstTy.getNumElements())) in fewerElementsVectorShuffle()
4824 if (isPowerOf2_32(NumParts)) { in fewerElementsVectorReductions()
6225 if (!isPowerOf2_32(BW)) in lowerFunnelShiftWithInverse()
6282 if (isPowerOf2_32(BW)) { in lowerFunnelShiftAsShifts()
6344 if (!isPowerOf2_32(DstTySize) || !isPowerOf2_32(DstTyScalarSize) || in lowerEXT()
6345 !isPowerOf2_32(SrcTyScalarSize)) in lowerEXT()
6457 isPowerOf2_32(EltSizeInBits)) in lowerRotate()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Lex/
H A DHeaderMap.cpp93 if (!llvm::isPowerOf2_32(NumBuckets)) in checkHeader()
203 assert(llvm::isPowerOf2_32(NumBuckets) && "Expected power of 2"); in lookupFilename()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DXRayInstr.h49 assert(llvm::isPowerOf2_32(K)); in has()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp24 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/freebsd/contrib/llvm-project/clang/lib/Support/
H A DRISCVVIntrinsicUtils.cpp127 return (V <= 64 && isPowerOf2_32(V)); in verifyType()
130 return (V <= 32 && isPowerOf2_32(V)); in verifyType()
133 return (V <= 16 && isPowerOf2_32(V)); in verifyType()
136 return (V <= 8 && isPowerOf2_32(V)); in verifyType()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.h490 return isPowerOf2_32(SEW) && SEW >= 8 && SEW <= 1024; in isValidSEW()
495 return isPowerOf2_32(LMUL) && LMUL <= 8 && (!Fractional || LMUL != 1); in isValidLMUL()
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp237 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
255 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonStoreWidening.cpp322 assert(isPowerOf2_32(SizeAccum) && "First store size not a power of 2"); in selectStores()
366 if (isPowerOf2_32(SizeAccum)) { in selectStores()
H A DHexagonVectorCombine.cpp1628 if (isPowerOf2_32(Bits)) in getNumSignificantBits()
1630 else if (Bits > 1 && isPowerOf2_32(Bits - 1)) in getNumSignificantBits()
1748 if (Width <= 32 && !isPowerOf2_32(Width)) { in processFxpMul()
1827 assert(Width >= 32 || isPowerOf2_32(Width)); // Width <= 32 => Width is 2^n in processFxpMulChopped()
2644 assert(isPowerOf2_32(ToWidth) && isPowerOf2_32(FromWidth)); in splitVectorElements()
2699 assert(isPowerOf2_32(Width) && isPowerOf2_32(ToWidth)); in joinVectorElements()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp315 assert(isPowerOf2_32(NumSplits) && "Expected power of 2 splits"); in trySADReplacement()
370 if (!isPowerOf2_32(NumElems)) in matchAddReduction()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DARM.cpp661 if (!llvm::isPowerOf2_32(NumElements) && NumElements != 3) in isIllegalVectorType()
668 if (!llvm::isPowerOf2_32(NumElements)) in isIllegalVectorType()
711 if (!llvm::isPowerOf2_32(NumElts)) in isLegalVectorType()
H A DAArch64.cpp458 if (!llvm::isPowerOf2_32(NumElements)) in isIllegalVectorType()
476 if (!llvm::isPowerOf2_32(NumElts)) in isLegalVectorType()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetMachine.cpp202 isPowerOf2_32(RVVBitsMin))) && in getSubtargetImpl()
210 isPowerOf2_32(RVVBitsMax))) && in getSubtargetImpl()
H A DRISCVInstrInfoZb.td82 return !isInt<12>(Imm) && isPowerOf2_32(~Imm);
89 return !isInt<12>(Imm) && isPowerOf2_32(Imm);
162 return Subtarget->is64Bit() ? isPowerOf2_64(~I) : isPowerOf2_32(~I);
827 return !isInt<12>(Imm) && isPowerOf2_32(~Imm);
830 return !isInt<12>(Imm) && isPowerOf2_32(Imm);
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUTargetTransformInfo.h116 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
H A DSIShrinkInstructions.cpp505 if (isPowerOf2_32(~Imm)) { in shrinkScalarLogicOp()
513 if (isPowerOf2_32(Imm)) { in shrinkScalarLogicOp()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DFoldingSet.cpp228 assert(isPowerOf2_32(NewBucketCount) && "Bad bucket count!"); in GrowBucketCount()
H A DKnownBits.cpp180 if (isPowerOf2_32(BitWidth)) in getMaxShiftAmount()
236 isPowerOf2_32(BitWidth)) { in shl()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp701 assert(isPowerOf2_32(DL.getTypeSizeInBits(Ty)) && in splitChainByAlignment()
1362 if ((!VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(Ty))) || in collectEquivalenceClasses()
1363 (VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(VecTy->getScalarType())))) in collectEquivalenceClasses()
H A DLoopVectorizationLegality.cpp89 return isPowerOf2_32(Val) && Val <= VectorizerParams::MaxVectorWidth; in validate()
91 return isPowerOf2_32(Val) && Val <= MaxInterleaveFactor; in validate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.h420 if (ScalarMemTy->isIntegerTy(8) && isPowerOf2_32(VF) && VF >= 4) in getStoreMinimumVF()

12345