Home
last modified time | relevance | path

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

12

/external/llvm/unittests/Support/
DMathExtrasTest.cpp17 TEST(MathExtras, isPowerOf2_32) { in TEST() argument
18 EXPECT_TRUE(isPowerOf2_32(1 << 6)); in TEST()
19 EXPECT_TRUE(isPowerOf2_32(1 << 12)); in TEST()
20 EXPECT_FALSE(isPowerOf2_32((1 << 19) + 3)); in TEST()
21 EXPECT_FALSE(isPowerOf2_32(0xABCDEF0)); in TEST()
/external/llvm/lib/Target/PowerPC/
DPPCTargetTransformInfo.cpp124 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
DPPCFrameLowering.cpp405 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
439 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
DPPCISelDAGToDAG.cpp1021 if ((signed)Imm > 0 && isPowerOf2_32(Imm)) { in Select()
1027 } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) { in Select()
/external/llvm/lib/IR/
DAttributes.cpp77 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithAlignment()
84 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in getWithStackAlignment()
1026 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addAlignmentAttr()
1038 assert(isPowerOf2_32(Align) && "Alignment must be a power of two."); in addStackAlignmentAttr()
DType.cpp330 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
/external/llvm/include/llvm/Support/
DMathExtras.h132 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp788 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdownMVT()
810 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdownMVT()
1080 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdown()
1105 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdown()
DExecutionDepsFix.cpp566 if (isPowerOf2_32(available)) { in visitSoftInstr()
/external/llvm/lib/Target/X86/
DX86TargetTransformInfo.cpp124 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
/external/llvm/lib/MC/
DMCAsmStreamer.cpp566 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol()
764 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
DMachObjectWriter.cpp233 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
/external/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp283 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
/external/llvm/lib/Target/ARM/
DARMConstantIslandPass.cpp536 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement()
611 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
DARMISelDAGToDAG.cpp589 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg()
688 if (isPowerOf2_32(RHSC)) { in SelectAddrMode2Worker()
2652 if (isPowerOf2_32(RHSV-1)) { // 2^n+1? in Select()
2668 if (isPowerOf2_32(RHSV+1)) { // 2^n-1? in Select()
DARMISelLowering.cpp7950 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine()
7958 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine()
7970 if (isPowerOf2_32(MulAmtAbs + 1)) { in PerformMULCombine()
7978 } else if (isPowerOf2_32(MulAmtAbs - 1)) { in PerformMULCombine()
8361 if (!isPowerOf2_32(NumElems * FromEltSz * ToEltSz)) return SDValue(); in PerformSTORECombine()
9680 return isPowerOf2_32(Scale); in isLegalT2ScaledAddressingMode()
9724 return isPowerOf2_32(Scale & ~1); in isLegalAddressingMode()
9739 return isPowerOf2_32(Scale); in isLegalAddressingMode()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp736 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
DInstCombineCalls.cpp172 if (Len <= 8 && isPowerOf2_32((uint32_t)Len)) { in SimplifyMemSet()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp544 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()
DLegalizeIntegerTypes.cpp593 assert(isPowerOf2_32(NumElts) && in PromoteIntRes_TRUNCATE()
1365 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithKnownAmountBit()
1452 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithUnknownAmountBit()
DLegalizeVectorTypes.cpp2376 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
2392 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp2255 assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() && in UpdateAlignment()
2261 assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() && in UpdateAlignment()
/external/llvm/include/llvm/Target/
DTargetLowering.h1476 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1711 assert(isPowerOf2_32(VF) && in vectorizeLoop()
2992 assert(isPowerOf2_32(UserVF) && "VF needs to be a power of two"); in selectVectorizationFactor()
/external/llvm/lib/Analysis/
DValueTracking.cpp1461 if (isPowerOf2_32(Width) && Width > 8) { in isBytewiseValue()

12