/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | ExpandReductions.cpp | 126 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 D | TargetLoweringBase.cpp | 1032 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 D | ExecutionDomainFix.cpp | 320 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | LegalityPredicates.cpp | 152 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2() 204 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
|
H A D | LegalizerHelper.cpp | 3369 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 D | HeaderMap.cpp | 93 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 D | XRayInstr.h | 49 assert(llvm::isPowerOf2_32(K)); in has()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyTargetTransformInfo.cpp | 24 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/freebsd/contrib/llvm-project/clang/lib/Support/ |
H A D | RISCVVIntrinsicUtils.cpp | 127 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 D | RISCVBaseInfo.h | 490 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 D | LoongArchISelDAGToDAG.cpp | 237 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 D | HexagonStoreWidening.cpp | 322 assert(isPowerOf2_32(SizeAccum) && "First store size not a power of 2"); in selectStores() 366 if (isPowerOf2_32(SizeAccum)) { in selectStores()
|
H A D | HexagonVectorCombine.cpp | 1628 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 D | X86PartialReduction.cpp | 315 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 D | ARM.cpp | 661 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 D | AArch64.cpp | 458 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 D | RISCVTargetMachine.cpp | 202 isPowerOf2_32(RVVBitsMin))) && in getSubtargetImpl() 210 isPowerOf2_32(RVVBitsMax))) && in getSubtargetImpl()
|
H A D | RISCVInstrInfoZb.td | 82 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 D | AMDGPUTargetTransformInfo.h | 116 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
H A D | SIShrinkInstructions.cpp | 505 if (isPowerOf2_32(~Imm)) { in shrinkScalarLogicOp() 513 if (isPowerOf2_32(Imm)) { in shrinkScalarLogicOp()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | FoldingSet.cpp | 228 assert(isPowerOf2_32(NewBucketCount) && "Bad bucket count!"); in GrowBucketCount()
|
H A D | KnownBits.cpp | 180 if (isPowerOf2_32(BitWidth)) in getMaxShiftAmount() 236 isPowerOf2_32(BitWidth)) { in shl()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/ |
H A D | LoadStoreVectorizer.cpp | 701 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 D | LoopVectorizationLegality.cpp | 89 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 D | AArch64TargetTransformInfo.h | 420 if (ScalarMemTy->isIntegerTy(8) && isPowerOf2_32(VF) && VF >= 4) in getStoreMinimumVF()
|