Home
last modified time | relevance | path

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

/freebsd-14.2/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.cpp191 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown() function in gwp_asan::GuardedPoolAllocator
247 UserPtr = alignDown(SlotEnd - Size, Alignment); in allocate()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULowerKernelArguments.cpp194 int64_t AlignDownOffset = alignDown(EltOffset, 4); in lowerKernelArguments()
H A DGCNSchedStrategy.cpp102 unsigned VGPRBudget = alignDown(Addressable / TargetOccupancy, Granule); in initialize()
H A DAMDGPUCodeGenPrepare.cpp1963 for (unsigned End = alignDown(NumElts, SubVecSize); Idx < End; in visitPHINode()
H A DSIRegisterInfo.cpp553 unsigned BaseIdx = alignDown(ST.getMaxNumSGPRs(MF), Align) - Align; in getAlignedHighSGPRForRC()
H A DSIISelLowering.cpp1990 int64_t AlignDownOffset = alignDown(Offset, 4); in lowerKernargMemParameter()
2884 int64_t AlignDownOffset = alignDown(Offset, 4); in LowerFormalArguments()
H A DSIInstrInfo.cpp8927 const uint32_t MaxImm = alignDown(MaxOffset, Alignment.value()); in splitMUBUFOffset()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDGPUBaseInfo.cpp978 MinNumSGPRs = alignDown(MinNumSGPRs, getSGPRAllocGranule(STI)) + 1; in getMinNumSGPRs()
995 MaxNumSGPRs = alignDown(MaxNumSGPRs, getSGPRAllocGranule(STI)); in getMaxNumSGPRs()
1103 unsigned MaxNumVGPRs = alignDown(TotNumVGPRs / WavesPerEU, Granule); in getMinNumVGPRs()
1105 if (MaxNumVGPRs == alignDown(TotNumVGPRs / MaxWavesPerEU, Granule)) in getMinNumVGPRs()
1112 unsigned MaxNumVGPRsNext = alignDown(TotNumVGPRs / (WavesPerEU + 1), Granule); in getMinNumVGPRs()
1120 unsigned MaxNumVGPRs = alignDown(getTotalNumVGPRs(STI) / WavesPerEU, in getMaxNumVGPRs()
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DARMErrataFix.cpp173 sourceAddr = alignDown(sourceAddr, 4); in getThumbDestAddr()
H A DLinkerScript.cpp1282 return alignDown(min, config->maxPageSize); in computeBase()
1312 min = alignDown(min - headerSize, config->maxPageSize); in allocateHeaders()
H A DWriter.cpp3002 alignDown(p->firstSec->offset + p->p_filesz, 4), in writeTrapInstr()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DMathExtras.h428 inline uint64_t alignDown(uint64_t Value, uint64_t Align, uint64_t Skew = 0) {
/freebsd-14.2/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()
1287 int32_t D = alignDown(32767, Ranges[I-Begin].Align); // XXX hardcoded in assignInits()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp915 NLZ = alignDown(NLZ, 8); in SimplifyDemandedUseBits()
916 NTZ = alignDown(NTZ, 8); in SimplifyDemandedUseBits()
H A DInstCombineCalls.cpp1864 uint64_t LZ = alignDown(Known.countMinLeadingZeros(), 8); in visitCallInst()
1865 uint64_t TZ = alignDown(Known.countMinTrailingZeros(), 8); in visitCallInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FrameLowering.cpp808 const unsigned BoundOffset = alignDown(Offset, StackProbeSize); in emitStackProbeInlineGenericLoop()
2638 return alignDown(MFI.getMaxCallFrameSize(), getStackAlign().value()) + in getWin64EHFrameIndexRef()
2814 NumRegsForPush2 = UsePush2Pop2 ? alignDown(NumCSGPR, 2) : 0; in assignCalleeSavedSpillSlots()
H A DX86TargetTransformInfo.cpp1527 int ExtractIndex = alignDown((Index % NumElts), NumSubElts); in getShuffleCost()
/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DRecordLayoutBuilder.cpp3039 llvm::alignDown(FieldBitOffset, Context.toBits(Info.Alignment)) + in layoutBitField()
H A DExprConstant.cpp9507 ? llvm::alignDown(Result.Offset.getQuantity(), Alignment64) in VisitBuiltinCallExpr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp2283 NLZ = alignDown(NLZ, 8); in SimplifyDemandedBits()
2284 NTZ = alignDown(NTZ, 8); in SimplifyDemandedBits()
H A DLegalizeIntegerTypes.cpp5576 DAG.getConstant(alignDown(IdxVal, NElts), dl, in PromoteIntRes_EXTRACT_SUBVECTOR()
H A DSelectionDAGBuilder.cpp3946 int NewStartIdx = alignDown(Idx, MaskNumElts); in visitShuffleVector()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp8067 OffsetBeg = alignDown(OffsetBeg, VecSz, Offset); in getEntryCost()