Home
last modified time | relevance | path

Searched refs:isPowerOf2_32 (Results 1 – 25 of 32) 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/include/llvm/
DAttributes.h186 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/
DMathExtras.h128 inline bool isPowerOf2_32(uint32_t Value) { in isPowerOf2_32() function
/external/llvm/lib/Target/CellSPU/
DSPUFrameLowering.cpp67 assert(isPowerOf2_32(Align) && "Alignment is not power of 2"); in determineFrameLayout()
/external/llvm/lib/MC/
DMCAsmStreamer.cpp529 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol()
727 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
DMachObjectWriter.cpp219 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
/external/llvm/lib/Target/PowerPC/
DPPCFrameLowering.cpp359 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
393 assert(isPowerOf2_32(MaxAlign) && isInt<16>(MaxAlign) && in emitPrologue()
DPPCISelDAGToDAG.cpp870 if ((signed)Imm > 0 && isPowerOf2_32(Imm)) { in Select()
876 } else if ((signed)Imm < 0 && isPowerOf2_32(-Imm)) { in Select()
/external/llvm/lib/CodeGen/
DExecutionDepsFix.cpp566 if (isPowerOf2_32(available)) { in visitSoftInstr()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp660 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()
DLegalizeVectorOps.cpp414 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()
DLegalizeIntegerTypes.cpp591 assert(isPowerOf2_32(NumElts) && in PromoteIntRes_TRUNCATE()
1355 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithKnownAmountBit()
1442 assert(isPowerOf2_32(NVTBits) && in ExpandShiftWithUnknownAmountBit()
DLegalizeVectorTypes.cpp2298 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
2314 isPowerOf2_32(WidenWidth / MemVTWidth) && in FindMemType()
/external/llvm/utils/TableGen/
DDAGISelMatcherGen.cpp287 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
/external/llvm/lib/VMCore/
DType.cpp351 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
/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.cpp500 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()
DARMISelLowering.cpp7517 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/
DInstCombineShifts.cpp739 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
DInstCombineCalls.cpp141 if (Len <= 8 && isPowerOf2_32((uint32_t)Len)) { in SimplifyMemSet()
/external/clang/lib/CodeGen/
DCGRecordLayoutBuilder.cpp273 assert(llvm::isPowerOf2_32(TypeSizeInBits) && "Unexpected type size!"); in MakeInfo()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp2235 assert(llvm::isPowerOf2_32(NewAlignment.getQuantity() && in UpdateAlignment()
2241 assert(llvm::isPowerOf2_32(UnpackedNewAlignment.getQuantity() && in UpdateAlignment()
/external/llvm/include/llvm/Target/
DTargetLowering.h1964 if (BitSize < 8 || !isPowerOf2_32(BitSize)) { in getTypeConversion()
/external/llvm/lib/Analysis/
DValueTracking.cpp1370 if (isPowerOf2_32(Width) && Width > 8) { in isBytewiseValue()
/external/llvm/lib/AsmParser/
DLLParser.cpp1156 if (!isPowerOf2_32(Alignment)) in ParseOptionalAlignment()
1229 if (!isPowerOf2_32(Alignment)) in ParseOptionalStackAlignment()

12