/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 120 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/ |
D | AMDGPUTargetTransformInfo.h | 67 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 261 if (!isPowerOf2_32(NumVecElems)) in matchPairwiseReduction() 325 if (!isPowerOf2_32(NumVecElems)) in matchVectorSplittingReduction()
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZTargetTransformInfo.cpp | 235 assert(isPowerOf2_32(TyWidth) && "Type width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/IR/ |
D | Attributes.cpp | 79 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()
|
D | Type.cpp | 328 return (BitWidth > 7) && isPowerOf2_32(BitWidth); in isPowerOf2ByteWidth()
|
/external/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 925 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()
|
D | ExecutionDepsFix.cpp | 641 if (isPowerOf2_32(available)) { in visitSoftInstr()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoadCombine.cpp | 175 while (TotalSize != 0 && !isPowerOf2_32(TotalSize)) in combineLoads()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCTargetTransformInfo.cpp | 32 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Transforms/Utils/ |
D | LoopUnrollRuntime.cpp | 324 if (!isPowerOf2_32(Count)) in UnrollRuntimeLoopProlog()
|
/external/llvm/lib/Target/X86/ |
D | X86TargetTransformInfo.cpp | 36 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/ |
D | MathExtras.h | 350 inline bool isPowerOf2_32(uint32_t Value) {
|
/external/llvm/lib/MC/ |
D | MCAsmStreamer.cpp | 537 assert(isPowerOf2_32(ByteAlign) && "alignment must be a power of 2"); in EmitLocalCommonSymbol() 759 if (isPowerOf2_32(ByteAlignment)) { in EmitValueToAlignment()
|
D | MachObjectWriter.cpp | 237 assert(isPowerOf2_32(SD.getAlignment()) && "Invalid alignment!"); in WriteSection()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64TargetTransformInfo.cpp | 172 assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); in getPopcntSupport()
|
/external/llvm/lib/Target/Mips/ |
D | MipsConstantIslandPass.cpp | 568 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement() 642 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
|
/external/llvm/utils/TableGen/ |
D | DAGISelMatcherGen.cpp | 325 if (!isPowerOf2_32(II->getValue())) { // Don't bother with single bits. in EmitOperatorMatchCode()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelDAGToDAG.cpp | 130 return isPowerOf2_32(v); in ImmIsSingleBit() 1135 if (((ValueVT == MVT::i32) && !isPowerOf2_32(Val)) || in SelectBitOp()
|
/external/llvm/lib/Target/ARM/ |
D | ARMConstantIslandPass.cpp | 538 assert(isPowerOf2_32(Align) && "Invalid alignment"); in doInitialPlacement() 614 assert(isPowerOf2_32(Align) && "Invalid CPE alignment"); in getCPELogAlign()
|
D | ARMISelDAGToDAG.cpp | 581 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/ |
D | InstCombineShifts.cpp | 761 isPowerOf2_32(BitWidth) && Log2_32(BitWidth) == ShAmt) { in visitLShr()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorize.cpp | 1034 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()
|
D | SLPVectorizer.cpp | 3196 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/ |
D | LegalizeVectorOps.cpp | 648 if (!isPowerOf2_32(ScalarSize)) in ExpandStore()
|