Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DLegalityPredicates.cpp152 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 DRISCVSubtarget.cpp152 isPowerOf2_32(RVVVectorBitsMax) && in getMaxRVVVectorSizeInBits()
179 isPowerOf2_32(RVVVectorBitsMin))) && in getMinRVVVectorSizeInBits()
194 assert(RVVVectorLMULMax <= 8 && isPowerOf2_32(RVVVectorLMULMax) && in getMaxLMULForFixedLengthVectors()
H A DRISCVTargetTransformInfo.cpp116 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DExpandReductions.cpp126 if (!isPowerOf2_32( in expandReductions()
146 if (!isPowerOf2_32( in expandReductions()
158 if (!isPowerOf2_32( in expandReductions()
H A DTargetLoweringBase.cpp975 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 DInterleavedAccessPass.cpp217 if (!isPowerOf2_32(LaneLen)) in isReInterleaveMask()
H A DExecutionDomainFix.cpp320 if (isPowerOf2_32(available)) { in visitSoftInstr()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DMathExtrasTest.cpp216 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 DLoongArchISelDAGToDAG.cpp101 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 DEPCGenericRTDyldMemoryManager.cpp106 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 DHeaderMap.cpp93 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 DXRayInstr.h49 assert(llvm::isPowerOf2_32(K)); in has()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.h388 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 DRISCVVIntrinsicUtils.cpp122 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 DCodeTemplate.cpp67 return isPowerOf2_32(static_cast<uint32_t>(Execution)); in isEnumValue()
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyTargetTransformInfo.cpp24 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/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()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64LegalizerInfo.cpp431 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 DAMDGPUTargetTransformInfo.h111 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
H A DSIShrinkInstructions.cpp456 if (isPowerOf2_32(~Imm)) { in shrinkScalarLogicOp()
464 if (isPowerOf2_32(Imm)) { in shrinkScalarLogicOp()
/llvm-project-15.0.7/llvm/include/llvm/MC/
H A DMCSymbol.h350 assert((!Align || isPowerOf2_32(Align)) &&
/llvm-project-15.0.7/libc/benchmarks/
H A DLibcMemoryBenchmarkMain.cpp252 if (!isPowerOf2_32(AlignedAccess)) in main()
/llvm-project-15.0.7/llvm/lib/Support/
H A DFoldingSet.cpp228 assert(isPowerOf2_32(NewBucketCount) && "Bad bucket count!"); in GrowBucketCount()
/llvm-project-15.0.7/llvm/lib/Transforms/Vectorize/
H A DLoopVectorizationLegality.cpp84 return isPowerOf2_32(Val) && Val <= VectorizerParams::MaxVectorWidth; in validate()
86 return isPowerOf2_32(Val) && Val <= MaxInterleaveFactor; in validate()

12345