Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/clang/include/clang/Tooling/DependencyScanning/
H A DDependencyScanningService.h49 LLVM_MARK_AS_BITMASK_ENUM(Id), All = llvm::NextPowerOf2(Id) - 1
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DBitmaskEnum.h122 // On overflow, NextPowerOf2 returns zero with the type uint64_t, so
124 return NextPowerOf2(largest_bitmask_enum_bit<E>::value) - 1;
H A DDenseMap.h435 return NextPowerOf2(NumEntries * 4 / 3 + 1); in getMinBucketToReserveForEntries()
849 allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1)))); in grow()
968 init(NextPowerOf2(std::distance(I, E))); in SmallDenseMap()
1088 AtLeast = std::max<unsigned>(64, NextPowerOf2(AtLeast-1)); in grow()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DStringMap.cpp28 return NextPowerOf2(NumEntries * 4 / 3 + 1); in getMinBucketToReserveForEntries()
H A DAPFloat.cpp2366 APInt IntegerConstant(NextPowerOf2(semanticsPrecision(*semantics)), 1); in roundToIntegral()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DLoopIterator.h116 L(Container), PostNumbers(NextPowerOf2(Container->getNumBlocks())) { in LoopBlocksDFS()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DTypeSize.h264 static_cast<ScalarTy>(llvm::NextPowerOf2(getKnownMinValue())), in coefficientNextPowerOf2()
H A DAllocator.h448 return Allocator.Allocate(Size, std::min((size_t)llvm::NextPowerOf2(Size), in new()
H A DMathExtras.h382 constexpr uint64_t NextPowerOf2(uint64_t A) { in NextPowerOf2() function
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp203 HashTable Combined(NextPowerOf2(2 * Weights.size())); in combineWeightsByHashing()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeTypes.cpp1031 ShiftAmountTy = MVT::getIntegerVT(NextPowerOf2(ReqShiftAmountInBits)); in SplitInteger()
H A DTargetLowering.cpp604 SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in ShrinkDemandedOp()
1844 SmallVTBits < BitWidth; SmallVTBits = NextPowerOf2(SmallVTBits)) { in SimplifyDemandedBits()
/freebsd/contrib/llvm-project/llvm/lib/DWP/
H A DDWP.cpp505 std::vector<unsigned> Buckets(NextPowerOf2(3 * IndexEntries.size() / 2)); in writeIndex()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELF_riscv.cpp584 const auto Align = NextPowerOf2(E.getAddend()); in relaxAlign()
/freebsd/contrib/llvm-project/lldb/source/Expression/
H A DIRInterpreter.cpp382 resolved_value.zextOrTrunc(llvm::NextPowerOf2(constant_size) * 8)); in ResolveConstant()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FloatingPoint.cpp1643 STDefs = NextPowerOf2(STDefs) - 1; in handleSpecialFP()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp854 DesiredPadding = NextPowerOf2(InitSize - 1) - InitSize; in buildBitSetsFromGlobalVariables()
/freebsd/contrib/llvm-project/lld/ELF/
H A DSyntheticSections.cpp2402 maskWords = NextPowerOf2(numBits / (config->wordsize * 8)); in finalizeContents()
3331 return std::max<size_t>(NextPowerOf2(symbols.size() * 4 / 3), 1024); in computeSymtabSize()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1146 return (NextPowerOf2(valueWidth-1) - 1) & orgShiftAmount; in getShiftAmount()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyISelLowering.cpp439 unsigned BitWidth = NextPowerOf2(VT.getSizeInBits() - 1); in getScalarShiftAmountTy()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1465 unsigned char Width = NextPowerOf2(std::max((unsigned char)7, Max)); in optimizeMemChr()
H A DSimplifyCFG.cpp6858 uint64_t TableSizePowOf2 = NextPowerOf2(std::max(7ULL, TableSize - 1ULL)); in SwitchToLookupTable()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetTransformInfo.cpp3497 unsigned PrevPow2 = NextPowerOf2(CurrNumElements) / 2; in getMemoryOpCost()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprScalar.cpp1823 llvm::ConstantInt::get(MTy, llvm::NextPowerOf2(LHSElts - 1) - 1); in VisitShuffleVectorExpr()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULegalizerInfo.cpp558 unsigned RoundedSize = NextPowerOf2(SizeInBits); in shouldWidenLoad()

12