Home
last modified time | relevance | path

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

12345

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandReductions.cpp81 if (!isPowerOf2_32( in expandReductions()
102 if (!isPowerOf2_32(NumElts)) in expandReductions()
128 if (!isPowerOf2_32( in expandReductions()
140 if (!isPowerOf2_32( in expandReductions()
H A DTargetLoweringBase.cpp950 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
1075 if (VT.isScalableVector() && !isPowerOf2_32(EC.getKnownMinValue())) in getVectorTypeBreakdownMVT()
1081 if (!isPowerOf2_32(EC.getKnownMinValue())) { in getVectorTypeBreakdownMVT()
1416 if (isPowerOf2_32(EC.getKnownMinValue())) { in computeRegisterProperties()
1571 if (!isPowerOf2_32(EltCnt.getKnownMinValue())) { in getVectorTypeBreakdown()
H A DExecutionDomainFix.cpp320 if (isPowerOf2_32(available)) { in visitSoftInstr()
/freebsd/contrib/llvm-project/llvm/include/llvm/TargetParser/
H A DRISCVTargetParser.h73 return isPowerOf2_32(SEW) && SEW >= 8 && SEW <= 64; in isValidSEW()
78 return isPowerOf2_32(LMUL) && LMUL <= 8 && (!Fractional || LMUL != 1); in isValidLMUL()
/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.cpp3286 if (!isPowerOf2_32(NewEltSize / OldEltSize)) in bitcastExtractVectorElt()
3387 if (!isPowerOf2_32(NewEltSize / OldEltSize)) in bitcastInsertVectorElt()
3541 if (!isPowerOf2_32(MemSizeInBits)) { in lowerLoad()
3660 if (!isPowerOf2_32(MemSizeInBits)) { in lowerStore()
4153 if (isPowerOf2_32(NElts)) { in clampVectorIndex()
4920 if (!isPowerOf2_32(DstTy.getNumElements())) in fewerElementsVectorShuffle()
5070 if (isPowerOf2_32(NumParts)) { in fewerElementsVectorReductions()
5109 if (isPowerOf2_32(SrcTy.getNumElements()) && in fewerElementsVectorReductions()
5110 isPowerOf2_32(NarrowTy.getNumElements())) { in fewerElementsVectorReductions()
6591 if (!isPowerOf2_32(BW)) in lowerFunnelShiftWithInverse()
[all …]
/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/LoongArch/
H A DLoongArchISelDAGToDAG.cpp242 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
260 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
/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()
H A DX86CallFrameOptimization.cpp245 assert(isPowerOf2_32(SlotSize) && "Expect power of 2 stack slot size"); in runOnMachineFunction()
/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/RISCV/
H A DRISCVTargetMachine.cpp203 isPowerOf2_32(RVVBitsMin))) && in getSubtargetImpl()
211 isPowerOf2_32(RVVBitsMax))) && in getSubtargetImpl()
H A DRISCVInstrInfoZb.td88 return !isInt<12>(Imm) && isPowerOf2_32(~Imm);
95 return !isInt<12>(Imm) && isPowerOf2_32(Imm);
168 return Subtarget->is64Bit() ? isPowerOf2_64(~I) : isPowerOf2_32(~I);
751 return !isInt<12>(Imm) && isPowerOf2_32(~Imm);
754 return !isInt<12>(Imm) && isPowerOf2_32(Imm);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DARM.cpp659 if (!llvm::isPowerOf2_32(NumElements) && NumElements != 3) in isIllegalVectorType()
666 if (!llvm::isPowerOf2_32(NumElements)) in isIllegalVectorType()
709 if (!llvm::isPowerOf2_32(NumElts)) in isLegalVectorType()
H A DAArch64.cpp474 if (!llvm::isPowerOf2_32(NumElements)) in isIllegalVectorType()
492 if (!llvm::isPowerOf2_32(NumElts)) in isLegalVectorType()
/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.cpp525 if (isPowerOf2_32(~Imm)) { in shrinkScalarLogicOp()
533 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()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerMemIntrinsics.cpp164 if (isPowerOf2_32(OpSizeVal)) in getRuntimeLoopCount()
174 if (isPowerOf2_32(OpSizeVal)) in getRuntimeLoopRemainder()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp701 assert(isPowerOf2_32(DL.getTypeSizeInBits(Ty)) && in splitChainByAlignment()
1361 if ((!VecTy && !isPowerOf2_32(DL.getTypeSizeInBits(Ty))) || in collectEquivalenceClasses()
1362 (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.h427 if (ScalarMemTy->isIntegerTy(8) && isPowerOf2_32(VF) && VF >= 4) in getStoreMinimumVF()

12345