/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 17 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/ |
D | PPCTargetTransformInfo.cpp | 124 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
D | PPCFrameLowering.cpp | 405 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue() 439 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
|
D | PPCISelDAGToDAG.cpp | 1021 if ((signed)Imm > 0 && isPowerOf2_32(Imm)) { in Select() 1027 } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) { in Select()
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 77 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()
|
D | Type.cpp | 330 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 132 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
|
/external/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 788 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()
|
D | ExecutionDepsFix.cpp | 566 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 124 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/MC/ |
D | MCAsmStreamer.cpp | 566 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol() 764 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
|
D | MachObjectWriter.cpp | 233 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherGen.cpp | 283 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 536 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement() 611 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
|
D | ARMISelDAGToDAG.cpp | 589 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()
|
D | ARMISelLowering.cpp | 7950 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/ |
D | InstCombineShifts.cpp | 736 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
|
D | InstCombineCalls.cpp | 172 if (Len <= 8 && isPowerOf2_32((uint32_t)Len)) { in SimplifyMemSet()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 544 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()
|
D | LegalizeIntegerTypes.cpp | 593 assert(isPowerOf2_32(NumElts) && in PromoteIntRes_TRUNCATE() 1365 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithKnownAmountBit() 1452 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithUnknownAmountBit()
|
D | LegalizeVectorTypes.cpp | 2376 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType() 2392 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 2255 assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() && in UpdateAlignment() 2261 assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() && in UpdateAlignment()
|
/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 1476 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1711 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/ |
D | ValueTracking.cpp | 1461 if (isPowerOf2_32(Width) && Width > 8) { in isBytewiseValue()
|