/external/llvm/unittests/Support/ |
D | MathExtrasTest.cpp | 176 TEST(MathExtras, NextPowerOf2) { in TEST() argument 177 EXPECT_EQ(4u, NextPowerOf2(3)); in TEST() 178 EXPECT_EQ(16u, NextPowerOf2(15)); in TEST() 179 EXPECT_EQ(256u, NextPowerOf2(128)); in TEST()
|
/external/llvm/include/llvm/Analysis/ |
D | LoopIterator.h | 57 L(Container), PostNumbers(NextPowerOf2(Container->getNumBlocks())) { in LoopBlocksDFS()
|
/external/llvm/include/llvm/ADT/ |
D | DenseMap.h | 569 init(NextPowerOf2(std::distance(I, E))); in DenseMap() 625 allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1)))); in grow() 732 init(NextPowerOf2(std::distance(I, E))); in SmallDenseMap() 849 AtLeast = std::max<unsigned>(64, NextPowerOf2(AtLeast-1)); in grow()
|
D | SmallVector.h | 255 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow()
|
/external/llvm/lib/IR/ |
D | DataLayout.cpp | 498 Align = NextPowerOf2(Align); in getAlignmentInfo() 512 Align = NextPowerOf2(Align); in getAlignmentInfo()
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 426 Size, std::min((size_t)llvm::NextPowerOf2(Size), offsetof(S, x))); in new()
|
D | MathExtras.h | 582 inline uint64_t NextPowerOf2(uint64_t A) {
|
/external/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 957 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 1006 NumElts = (unsigned)NextPowerOf2(NumElts); in getTypeConversion() 1068 NewVTSize = NextPowerOf2(NewVTSize); in getVectorTypeBreakdownMVT() 1440 NewVTSize = NextPowerOf2(NewVTSize); in getVectorTypeBreakdown()
|
/external/llvm/tools/llvm-dwp/ |
D | llvm-dwp.cpp | 197 std::vector<unsigned> Buckets(NextPowerOf2(3 * IndexEntries.size() / 2)); in writeIndex()
|
/external/llvm/lib/Analysis/ |
D | VectorUtils.cpp | 554 MinBW = NextPowerOf2(MinBW); in computeMinimumValueSizes()
|
D | BlockFrequencyInfoImpl.cpp | 157 HashTable Combined(NextPowerOf2(2 * Weights.size())); in combineWeightsByHashing()
|
D | MemoryDependenceAnalysis.cpp | 337 NewLoadByteSize = NextPowerOf2(NewLoadByteSize); in getLoadLoadClobberFullWidthSize()
|
/external/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyISelLowering.cpp | 206 unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1); in getScalarShiftAmountTy()
|
/external/llvm/lib/Transforms/IPO/ |
D | LowerBitSets.cpp | 542 uint64_t Padding = NextPowerOf2(InitSize - 1) - InitSize; in buildBitSetsFromGlobalVariables()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeVectorOps.cpp | 670 ScalarSize = NextPowerOf2(ScalarSize); in ExpandStore()
|
D | TargetLowering.cpp | 360 SmallVTBits = NextPowerOf2(SmallVTBits); in ShrinkDemandedOp() 361 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
|
D | DAGCombiner.cpp | 10796 unsigned NewBW = NextPowerOf2(MSB - ShAmt); in ReduceLoadOpStoreWidth() 10804 NewBW = NextPowerOf2(NewBW); in ReduceLoadOpStoreWidth()
|
/external/llvm/lib/Target/X86/ |
D | X86FloatingPoint.cpp | 1417 STDefs = NextPowerOf2(STDefs) - 1; in handleSpecialFP()
|
/external/llvm/lib/Transforms/Scalar/ |
D | GVN.cpp | 1185 NewLoadSize = NextPowerOf2(NewLoadSize); in GetLoadValueForLoad()
|
/external/llvm/lib/Support/ |
D | APFloat.cpp | 1882 APInt IntegerConstant(NextPowerOf2(semanticsPrecision(*semantics)), 1); in roundToIntegral()
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyLibCalls.cpp | 801 unsigned char Width = NextPowerOf2(std::max((unsigned char)7, Max)); in optimizeMemChr()
|
D | SimplifyCFG.cpp | 4622 uint64_t TableSizePowOf2 = NextPowerOf2(std::max(7ULL, TableSize - 1ULL)); in SwitchToLookupTable()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1133 return (NextPowerOf2(valueWidth-1) - 1) & orgShiftAmount; in getShiftAmount()
|
/external/clang/lib/AST/ |
D | ASTContext.cpp | 1581 Align = llvm::NextPowerOf2(Align); in getTypeInfoImpl() 1835 Width = llvm::NextPowerOf2(Width); in getTypeInfoImpl()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 1016 llvm::ConstantInt::get(MTy, llvm::NextPowerOf2(LHSElts - 1) - 1); in VisitShuffleVectorExpr()
|