| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | LegalityPredicates.cpp | 152 return !isPowerOf2_32(QueryTy.getScalarSizeInBits()); in scalarOrEltSizeNotPow2() 167 return QueryTy.isScalar() && !isPowerOf2_32(QueryTy.getSizeInBits()); in sizeNotPow2() 187 return !isPowerOf2_32(Query.MMODescrs[MMOIdx].MemoryTy.getSizeInBytes()); in memSizeInBytesNotPow2() 194 return !MemTy.isByteSized() || !isPowerOf2_32(MemTy.getSizeInBytes()); in memSizeNotByteSizePow2() 201 return QueryTy.isVector() && !isPowerOf2_32(QueryTy.getNumElements()); in numElementsNotPow2()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/ |
| H A D | RISCVSubtarget.cpp | 152 isPowerOf2_32(RVVVectorBitsMax) && in getMaxRVVVectorSizeInBits() 179 isPowerOf2_32(RVVVectorBitsMin))) && in getMinRVVVectorSizeInBits() 194 assert(RVVVectorLMULMax <= 8 && isPowerOf2_32(RVVVectorLMULMax) && in getMaxLMULForFixedLengthVectors()
|
| H A D | RISCVTargetTransformInfo.cpp | 116 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ExpandReductions.cpp | 126 if (!isPowerOf2_32( in expandReductions() 146 if (!isPowerOf2_32( in expandReductions() 158 if (!isPowerOf2_32( in expandReductions()
|
| H A D | TargetLoweringBase.cpp | 975 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion() 1100 if (VT.isScalableVector() && !isPowerOf2_32(EC.getKnownMinValue())) in getVectorTypeBreakdownMVT() 1106 if (!isPowerOf2_32(EC.getKnownMinValue())) { in getVectorTypeBreakdownMVT() 1131 if (!isPowerOf2_32(LaneSizeInBits)) in getVectorTypeBreakdownMVT() 1431 if (isPowerOf2_32(EC.getKnownMinValue())) { in computeRegisterProperties() 1586 if (!isPowerOf2_32(EltCnt.getKnownMinValue())) { in getVectorTypeBreakdown() 1612 if (!isPowerOf2_32(NewVTSize.getKnownMinSize())) in getVectorTypeBreakdown()
|
| H A D | InterleavedAccessPass.cpp | 217 if (!isPowerOf2_32(LaneLen)) in isReInterleaveMask()
|
| H A D | ExecutionDomainFix.cpp | 320 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | MathExtrasTest.cpp | 216 TEST(MathExtras, isPowerOf2_32) { in TEST() argument 217 EXPECT_FALSE(isPowerOf2_32(0)); in TEST() 218 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST() 219 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST() 220 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST() 221 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/LoongArch/ |
| H A D | LoongArchISelDAGToDAG.cpp | 101 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask() 119 assert(isPowerOf2_32(ShiftWidth) && "Unexpected max shift amount!"); in selectShiftMask()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | EPCGenericRTDyldMemoryManager.cpp | 106 if (!isPowerOf2_32(CodeAlign) || CodeAlign > EPC.getPageSize()) { in reserveAllocationSpace() 110 if (!isPowerOf2_32(RODataAlign) || RODataAlign > EPC.getPageSize()) { in reserveAllocationSpace() 114 if (!isPowerOf2_32(RWDataAlign) || RWDataAlign > EPC.getPageSize()) { in reserveAllocationSpace()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | XRayInstr.h | 49 assert(llvm::isPowerOf2_32(K)); in has()
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVBaseInfo.h | 388 return isPowerOf2_32(SEW) && SEW >= 8 && SEW <= 1024; in isValidSEW() 393 return isPowerOf2_32(LMUL) && LMUL <= 8 && (!Fractional || LMUL != 1); in isValidLMUL()
|
| /llvm-project-15.0.7/clang/lib/Support/ |
| H A D | RISCVVIntrinsicUtils.cpp | 122 return (V <= 64 && isPowerOf2_32(V)); in verifyType() 125 return (V <= 32 && isPowerOf2_32(V)); in verifyType() 128 return (V <= 16 && isPowerOf2_32(V)); in verifyType() 131 return (V <= 8 && isPowerOf2_32(V)); in verifyType()
|
| /llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/ |
| H A D | CodeTemplate.cpp | 67 return isPowerOf2_32(static_cast<uint32_t>(Execution)); in isEnumValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyTargetTransformInfo.cpp | 24 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/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()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64LegalizerInfo.cpp | 431 if (DstSize < 8 || DstSize > 128 || !isPowerOf2_32(DstSize)) in AArch64LegalizerInfo() 440 if (SrcSize < 8 || !isPowerOf2_32(SrcSize)) in AArch64LegalizerInfo() 757 if (!isPowerOf2_32(SrcTy.getNumElements())) in AArch64LegalizerInfo() 909 assert(isPowerOf2_32(DstTy.getSizeInBits()) && in legalizeVectorTrunc() 910 isPowerOf2_32(SrcTy.getSizeInBits())); in legalizeVectorTrunc()
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUTargetTransformInfo.h | 111 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
| H A D | SIShrinkInstructions.cpp | 456 if (isPowerOf2_32(~Imm)) { in shrinkScalarLogicOp() 464 if (isPowerOf2_32(Imm)) { in shrinkScalarLogicOp()
|
| /llvm-project-15.0.7/llvm/include/llvm/MC/ |
| H A D | MCSymbol.h | 350 assert((!Align || isPowerOf2_32(Align)) &&
|
| /llvm-project-15.0.7/libc/benchmarks/ |
| H A D | LibcMemoryBenchmarkMain.cpp | 252 if (!isPowerOf2_32(AlignedAccess)) in main()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | FoldingSet.cpp | 228 assert(isPowerOf2_32(NewBucketCount) && "Bad bucket count!"); in GrowBucketCount()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/ |
| H A D | LoopVectorizationLegality.cpp | 84 return isPowerOf2_32(Val) && Val <= VectorizerParams::MaxVectorWidth; in validate() 86 return isPowerOf2_32(Val) && Val <= MaxInterleaveFactor; in validate()
|