Home
last modified time | relevance | path

Searched refs:NextPowerOf2 (Results 1 – 25 of 25) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp176 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/
DLoopIterator.h57 L(Container), PostNumbers(NextPowerOf2(Container->getNumBlocks())) { in LoopBlocksDFS()
/external/llvm/include/llvm/ADT/
DDenseMap.h569 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()
DSmallVector.h255 size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2)); in grow()
/external/llvm/lib/IR/
DDataLayout.cpp498 Align = NextPowerOf2(Align); in getAlignmentInfo()
512 Align = NextPowerOf2(Align); in getAlignmentInfo()
/external/llvm/include/llvm/Support/
DAllocator.h426 Size, std::min((size_t)llvm::NextPowerOf2(Size), offsetof(S, x))); in new()
DMathExtras.h582 inline uint64_t NextPowerOf2(uint64_t A) {
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp957 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/
Dllvm-dwp.cpp197 std::vector<unsigned> Buckets(NextPowerOf2(3 * IndexEntries.size() / 2)); in writeIndex()
/external/llvm/lib/Analysis/
DVectorUtils.cpp554 MinBW = NextPowerOf2(MinBW); in computeMinimumValueSizes()
DBlockFrequencyInfoImpl.cpp157 HashTable Combined(NextPowerOf2(2 * Weights.size())); in combineWeightsByHashing()
DMemoryDependenceAnalysis.cpp337 NewLoadByteSize = NextPowerOf2(NewLoadByteSize); in getLoadLoadClobberFullWidthSize()
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyISelLowering.cpp206 unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1); in getScalarShiftAmountTy()
/external/llvm/lib/Transforms/IPO/
DLowerBitSets.cpp542 uint64_t Padding = NextPowerOf2(InitSize - 1) - InitSize; in buildBitSetsFromGlobalVariables()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeVectorOps.cpp670 ScalarSize = NextPowerOf2(ScalarSize); in ExpandStore()
DTargetLowering.cpp360 SmallVTBits = NextPowerOf2(SmallVTBits); in ShrinkDemandedOp()
361 for (; SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
DDAGCombiner.cpp10796 unsigned NewBW = NextPowerOf2(MSB - ShAmt); in ReduceLoadOpStoreWidth()
10804 NewBW = NextPowerOf2(NewBW); in ReduceLoadOpStoreWidth()
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp1417 STDefs = NextPowerOf2(STDefs) - 1; in handleSpecialFP()
/external/llvm/lib/Transforms/Scalar/
DGVN.cpp1185 NewLoadSize = NextPowerOf2(NewLoadSize); in GetLoadValueForLoad()
/external/llvm/lib/Support/
DAPFloat.cpp1882 APInt IntegerConstant(NextPowerOf2(semanticsPrecision(*semantics)), 1); in roundToIntegral()
/external/llvm/lib/Transforms/Utils/
DSimplifyLibCalls.cpp801 unsigned char Width = NextPowerOf2(std::max((unsigned char)7, Max)); in optimizeMemChr()
DSimplifyCFG.cpp4622 uint64_t TableSizePowOf2 = NextPowerOf2(std::max(7ULL, TableSize - 1ULL)); in SwitchToLookupTable()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1133 return (NextPowerOf2(valueWidth-1) - 1) & orgShiftAmount; in getShiftAmount()
/external/clang/lib/AST/
DASTContext.cpp1581 Align = llvm::NextPowerOf2(Align); in getTypeInfoImpl()
1835 Width = llvm::NextPowerOf2(Width); in getTypeInfoImpl()
/external/clang/lib/CodeGen/
DCGExprScalar.cpp1016 llvm::ConstantInt::get(MTy, llvm::NextPowerOf2(LHSElts - 1) - 1); in VisitShuffleVectorExpr()