Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Support/
DMathExtrasTest.cpp120 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
121 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
122 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
123 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
124 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/llvm/lib/Target/R600/
DAMDGPUTargetTransformInfo.h67 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Analysis/
DCostModel.cpp261 if (!isPowerOf2_32(NumVecElems)) in matchPairwiseReduction()
325 if (!isPowerOf2_32(NumVecElems)) in matchVectorSplittingReduction()
/external/llvm/lib/Target/SystemZ/
DSystemZTargetTransformInfo.cpp235 assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/IR/
DAttributes.cpp79 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithAlignment()
86 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithStackAlignment()
1156 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addAlignmentAttr()
1168 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addStackAlignmentAttr()
DType.cpp328 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp925 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
1043 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdownMVT()
1065 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdownMVT()
1417 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdown()
1442 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdown()
DExecutionDepsFix.cpp641 if (isPowerOf2_32(available)) { in visitSoftInstr()
/external/llvm/lib/Transforms/Scalar/
DLoadCombine.cpp175 while (TotalSize != 0 && !isPowerOf2_32(TotalSize)) in combineLoads()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp32 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Transforms/Utils/
DLoopUnrollRuntime.cpp324 if (!isPowerOf2_32(Count)) in UnrollRuntimeLoopProlog()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp36 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
789 if (!isPowerOf2_32(NumElem)) { in getMemoryOpCost()
828 !isPowerOf2_32(NumElem)) { in getMaskedMemoryOpCost()
/external/llvm/include/llvm/Support/
DMathExtras.h350 inline bool isPowerOf2_32(uint32_t Value) {
/external/llvm/lib/MC/
DMCAsmStreamer.cpp537 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol()
759 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
DMachObjectWriter.cpp237 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
/external/llvm/lib/Target/AArch64/
DAArch64TargetTransformInfo.cpp172 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/Target/Mips/
DMipsConstantIslandPass.cpp568 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement()
642 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
/external/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp325 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp130 return isPowerOf2_32(v); in ImmIsSingleBit()
1135 if (((ValueVT == MVT::i32) && !isPowerOf2_32(Val)) || in SelectBitOp()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp538 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement()
614 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
DARMISelDAGToDAG.cpp581 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
680 if (isPowerOf2_32(RHSC)) { in SelectAddrMode2Worker()
2546 if (isPowerOf2_32(RHSV-1)) { // 2^n+1? in Select()
2562 if (isPowerOf2_32(RHSV+1)) { // 2^n-1? in Select()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp761 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1034 return isPowerOf2_32(Val) && Val <= VectorizerParams::MaxVectorWidth; in validate()
1036 return isPowerOf2_32(Val) && Val <= MaxInterleaveFactor; in validate()
2882 assert(isPowerOf2_32(VF) && in vectorizeLoop()
4536 assert(isPowerOf2_32(UserVF) && "VF needs to be a power of two"); in selectVectorizationFactor()
DSLPVectorizer.cpp3196 if (!isPowerOf2_32(Sz) || VF < 2) in vectorizeStoreChain()
3367 if (!isPowerOf2_32(OpsWidth) || OpsWidth < 2) in tryToVectorizeList()
3730 assert(isPowerOf2_32(ReduxWidth) && in emitReduction()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp648 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()

12