Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c_checks.h34 return !isPowerOfTwo(Alignment) || !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize()
40 return !isPowerOfTwo(Alignment) || !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
H A Dtsd.h33 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
H A Dcommon.h53 inline constexpr bool isAligned(uptr X, uptr Alignment) { in isAligned() function
H A Dquarantine.h177 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
H A Dcombined.h459 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)))
523 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
800 if (!Ptr || !isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)) in isOwned()
H A Dprimary32.h246 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
560 if (isAligned(Region, RegionSize)) { in allocateRegionSlow()
H A Drelease.h116 static_assert(isAligned(StaticBufferNumElements * sizeof(uptr),
H A Dsecondary.h153 if (useMemoryTagging<Config>(Options) && isAligned(TaggedSize, PageSize)) { in mapSecondary()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DOptimizedStructLayout.cpp28 assert(isAligned(Field.Alignment, Field.Offset) && in checkValidLayout()
385 if (isAligned(FirstQueueToSearch->Alignment, LastEnd)) in performOptimizedStructLayout()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAlignment.h145 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() function
151 return isAligned(Lhs, reinterpret_cast<uintptr_t>(Addr)); in isAddrAligned()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DLoads.cpp29 static bool isAligned(const Value *Base, Align Alignment, in isAligned() function
155 return isAligned(V, Alignment, DL); in isDereferenceableAndAlignedPointer()
190 return isAligned(V, Alignment, DL); in isDereferenceableAndAlignedPointer()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsSERegisterInfo.cpp213 (!isIntN(OffsetBitSize, Offset) || !isAligned(OffsetAlign, Offset))) { in eliminateFI()
H A DMipsConstantIslandPass.cpp558 assert(isAligned(Alignment, Size) && "CP Entry not multiple of 4 bytes!"); in doInitialPlacement()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DStringTableBuilder.cpp173 if (isAligned(Alignment, Pos)) { in finalizeStringTable()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DDataLayout.cpp69 if (!StructSize.isScalable() && !isAligned(TyAlign, StructSize)) { in StructLayout()
84 if (!StructSize.isScalable() && !isAligned(StructAlignment, StructSize)) { in StructLayout()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86CallFrameOptimization.cpp225 if (!isAligned(StackAlign, CC.ExpectedDist)) in isProfitable()
H A DX86InstrInfo.cpp4800 bool isAligned = in storeRegToStackSlot() local
4804 unsigned Opc = getStoreRegOpcode(SrcReg, RC, isAligned, Subtarget); in storeRegToStackSlot()
4822 bool isAligned = in loadRegFromStackSlot() local
4826 unsigned Opc = getLoadRegOpcode(DestReg, RC, isAligned, Subtarget); in loadRegFromStackSlot()
8500 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
8501 Opc = getLoadRegOpcode(Reg, RC, isAligned, Subtarget); in unfoldMemoryOperand()
8580 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
8581 unsigned Opc = getStoreRegOpcode(Reg, DstRC, isAligned, Subtarget); in unfoldMemoryOperand()
8645 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
8646 Opc = getLoadRegOpcode(0, RC, isAligned, Subtarget); in unfoldMemoryOperand()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/
H A DLoongArchISelDAGToDAG.cpp198 isAligned(Align(4ULL), CN->getZExtValue())) { in SelectInlineAsmMemoryOperand()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldMachOAArch64.h462 assert(isAligned(getStubAlignment(), StubAddress) && in processGOTRelocation()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp606 if (!isAligned(I->getAlign(), Off)) in findArgParts()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1508 if (!isAligned(Alignment, V)) in SelectAnyImmediate()
1529 !isAligned(Alignment, cast<BlockAddressSDNode>(N)->getOffset())) in SelectAnyImmediate()
1554 if (!isAligned(Alignment, Const->getZExtValue())) in SelectGlobalAddress()
H A DHexagonISelLowering.cpp3716 if (!isAligned(A, AM.BaseOffs)) in isLegalAddressingMode()
3822 if (Op.size() >= 8 && Op.isAligned(Align(8))) in getOptimalMemOpType()
3824 if (Op.size() >= 4 && Op.isAligned(Align(4))) in getOptimalMemOpType()
3826 if (Op.size() >= 2 && Op.isAligned(Align(2))) in getOptimalMemOpType()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp599 if (isAligned(Attr.getAlignment().valueOrOne(), PtrOffset)) in adjustArgAttributes()
665 assert(isAligned(PrefAlign, ToRemoveSize) && in tryToShorten()
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/
H A DCSKYConstantIslandPass.cpp396 assert(isAligned(Alignment, Size) && "CP Entry not multiple of 4 bytes!"); in doInitialPlacement()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetLowering.h186 return isMemset() || llvm::isAligned(AlignCheck, SrcAlign.value()); in isSrcAligned()
189 return DstAlignCanChange || llvm::isAligned(AlignCheck, DstAlign.value()); in isDstAligned()
191 bool isAligned(Align AlignCheck) const { in isAligned() function

12