/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/include/llvm/ |
D | Attributes.h | 186 assert(isPowerOf2_32(i) && "Alignment must be a power of two."); in constructAlignmentFromInt() 207 assert(isPowerOf2_32(i) && "Alignment must be a power of two."); in constructStackAlignmentFromInt() 255 assert((!Alignment || isPowerOf2_32(Alignment)) && in decodeLLVMAttributesForBitcode()
|
/external/llvm/include/llvm/Support/ |
D | MathExtras.h | 128 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
|
/external/llvm/lib/Target/CellSPU/ |
D | SPUFrameLowering.cpp | 67 assert(isPowerOf2_32(Align) && "Alignment is not power of 2"); in determineFrameLayout()
|
/external/llvm/lib/MC/ |
D | MCAsmStreamer.cpp | 529 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol() 727 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
|
D | MachObjectWriter.cpp | 219 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCFrameLowering.cpp | 359 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue() 393 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
|
D | PPCISelDAGToDAG.cpp | 870 if ((signed)Imm > 0 && isPowerOf2_32(Imm)) { in Select() 876 } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) { in Select()
|
/external/llvm/lib/CodeGen/ |
D | ExecutionDepsFix.cpp | 566 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 660 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdownMVT() 682 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdownMVT() 947 if (!isPowerOf2_32(NumElts)) { in getVectorTypeBreakdown() 972 if (!isPowerOf2_32(NewVTSize)) in getVectorTypeBreakdown() 1161 if (!isPowerOf2_32(SmallVTBits)) in ShrinkDemandedOp()
|
D | LegalizeVectorOps.cpp | 414 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()
|
D | LegalizeIntegerTypes.cpp | 591 assert(isPowerOf2_32(NumElts) && in PromoteIntRes_TRUNCATE() 1355 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithKnownAmountBit() 1442 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithUnknownAmountBit()
|
D | LegalizeVectorTypes.cpp | 2298 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType() 2314 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherGen.cpp | 287 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
|
/external/llvm/lib/VMCore/ |
D | Type.cpp | 351 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
|
/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 | 500 if (isPowerOf2_32(RHSC)) { in SelectLdStSOReg() 598 if (isPowerOf2_32(RHSC)) { in SelectAddrMode2Worker() 2528 if (isPowerOf2_32(RHSV-1)) { // 2^n+1? in Select() 2544 if (isPowerOf2_32(RHSV+1)) { // 2^n-1? in Select()
|
D | ARMISelLowering.cpp | 7517 if (isPowerOf2_32(MulAmt - 1)) { in PerformMULCombine() 7525 } else if (isPowerOf2_32(MulAmt + 1)) { in PerformMULCombine() 7537 if (isPowerOf2_32(MulAmtAbs + 1)) { in PerformMULCombine() 7545 } else if (isPowerOf2_32(MulAmtAbs - 1)) { in PerformMULCombine() 7928 if (!isPowerOf2_32(NumElems * FromEltSz * ToEltSz)) return SDValue(); in PerformSTORECombine() 9205 return isPowerOf2_32(Scale); in isLegalT2ScaledAddressingMode() 9249 return isPowerOf2_32(Scale & ~1); in isLegalAddressingMode() 9264 return isPowerOf2_32(Scale); in isLegalAddressingMode()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineShifts.cpp | 739 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
|
D | InstCombineCalls.cpp | 141 if (Len <= 8 && isPowerOf2_32((uint32_t)Len)) { in SimplifyMemSet()
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayoutBuilder.cpp | 273 assert(llvm::isPowerOf2_32(TypeSizeInBits) && "Unexpected type size!"); in MakeInfo()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 2235 assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() && in UpdateAlignment() 2241 assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() && in UpdateAlignment()
|
/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 1964 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 1370 if (isPowerOf2_32(Width) && Width > 8) { in isBytewiseValue()
|
/external/llvm/lib/AsmParser/ |
D | LLParser.cpp | 1156 if (!isPowerOf2_32(Alignment)) in ParseOptionalAlignment() 1229 if (!isPowerOf2_32(Alignment)) in ParseOptionalStackAlignment()
|