Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.h138 static uintptr_t alignDown(uintptr_t Ptr, size_t Alignment);
H A Dguarded_pool_allocator.cpp194 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown() function in gwp_asan::GuardedPoolAllocator
250 UserPtr = alignDown(SlotEnd - Size, Alignment); in allocate()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp192 int64_t AlignDownOffset = alignDown(EltOffset, 4); in lowerKernelArguments()
H A DGCNSchedStrategy.cpp102 unsigned VGPRBudget = alignDown(Addressable / TargetOccupancy, Granule); in initialize()
H A DAMDGPUCodeGenPrepare.cpp1971 for (unsigned End = alignDown(NumElts, SubVecSize); Idx < End; in visitPHINode()
H A DSIRegisterInfo.cpp554 unsigned BaseIdx = alignDown(ST.getMaxNumSGPRs(MF), Align) - Align; in getAlignedHighSGPRForRC()
H A DSIISelLowering.cpp2051 int64_t AlignDownOffset = alignDown(Offset, 4); in lowerKernargMemParameter()
2953 int64_t AlignDownOffset = alignDown(Offset, 4); in LowerFormalArguments()
H A DSIInstrInfo.cpp9050 const uint32_t MaxImm = alignDown(MaxOffset, Alignment.value()); in splitMUBUFOffset()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp1040 MinNumSGPRs = alignDown(MinNumSGPRs, getSGPRAllocGranule(STI)) + 1; in getMinNumSGPRs()
1057 MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(STI)); in getMaxNumSGPRs()
1205 unsigned MaxNumVGPRs = alignDown(TotNumVGPRs / WavesPerEU, Granule); in getMinNumVGPRs()
1207 if (MaxNumVGPRs == alignDown(TotNumVGPRs / MaxWavesPerEU, Granule)) in getMinNumVGPRs()
1214 unsigned MaxNumVGPRsNext = alignDown(TotNumVGPRs / (WavesPerEU + 1), Granule); in getMinNumVGPRs()
1222 unsigned MaxNumVGPRs = alignDown(getTotalNumVGPRs(STI) / WavesPerEU, in getMaxNumVGPRs()
/freebsd/contrib/llvm-project/lld/ELF/
H A DARMErrataFix.cpp173 sourceAddr = alignDown(sourceAddr, 4); in getThumbDestAddr()
H A DLinkerScript.cpp1331 return alignDown(min, config->maxPageSize); in computeBase()
1361 min = alignDown(min - headerSize, config->maxPageSize); in allocateHeaders()
H A DWriter.cpp2801 alignDown(p->firstSec->offset + p->p_filesz, 4), in writeTrapInstr()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonConstExtenders.cpp1082 int32_t Min = -alignDown((1<<S)-1, A); in getOffsetRange()
1122 int32_t Min = -alignDown((1<<S)-1, A); in getOffsetRange()
1291 int32_t D = alignDown(32767, Ranges[I-Begin].Align); // XXX hardcoded in assignInits()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVFrameLowering.cpp615 uint64_t Spimm = std::min(alignDown(StackSize, 16), (uint64_t)48); in emitPrologue()
846 uint64_t Spimm = std::min(alignDown(StackSize, 16), (uint64_t)48); in emitEpilogue()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h547 constexpr T alignDown(U Value, V Align, W Skew = 0) {
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp929 NLZ = alignDown(NLZ, 8); in SimplifyDemandedUseBits()
930 NTZ = alignDown(NTZ, 8); in SimplifyDemandedUseBits()
H A DInstCombineCalls.cpp1950 uint64_t LZ = alignDown(Known.countMinLeadingZeros(), 8); in visitCallInst()
1951 uint64_t TZ = alignDown(Known.countMinTrailingZeros(), 8); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.cpp807 const unsigned BoundOffset = alignDown(Offset, StackProbeSize); in emitStackProbeInlineGenericLoop()
2693 return alignDown(MFI.getMaxCallFrameSize(), getStackAlign().value()) + in getWin64EHFrameIndexRef()
2869 NumRegsForPush2 = UsePush2Pop2 ? alignDown(NumCSGPR, 2) : 0; in assignCalleeSavedSpillSlots()
H A DX86TargetTransformInfo.cpp1596 int ExtractIndex = alignDown((Index % NumElts), NumSubElts); in getShuffleCost()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DInterpBuiltin.cpp1081 ? llvm::alignDown(PtrOffset, Alignment64) in interp__builtin_is_aligned_up_down()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp3051 llvm::alignDown(FieldBitOffset, Context.toBits(Info.Alignment)) + in layoutBitField()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp8479 alignDown(std::accumulate(Mask.begin(), Mask.end(), INT_MAX, in computeExtractCost()
8506 OffsetReg1 = alignDown( in computeExtractCost()
9502 OffsetBeg = alignDown(OffsetBeg, VecSz, Offset); in getEntryCost()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2314 NLZ = alignDown(NLZ, 8); in SimplifyDemandedBits()
2315 NTZ = alignDown(NTZ, 8); in SimplifyDemandedBits()
H A DLegalizeIntegerTypes.cpp5747 DAG.getConstant(alignDown(IdxVal, NElts), dl, in PromoteIntRes_EXTRACT_SUBVECTOR()
H A DSelectionDAGBuilder.cpp4139 int NewStartIdx = alignDown(Idx, MaskNumElts); in visitShuffleVector()

12