Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c_checks.h35 !isAligned(Size, Alignment); in checkAlignedAllocAlignmentAndSize()
42 !isAligned(Alignment, sizeof(void *)); in checkPosixMemalignAlignment()
H A Dtsd.h34 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in alignas()
H A Dcommon.h38 inline constexpr bool isAligned(uptr X, uptr Alignment) { in isAligned() function
H A Dprimary32.h70 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
287 if (isAligned(Region, RegionSize)) { in allocateRegionSlow()
H A Dquarantine.h176 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
H A Dcombined.h540 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)))
604 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
851 if (!Ptr || !isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)) in isOwned()
H A Dprimary64.h62 DCHECK(isAligned(reinterpret_cast<uptr>(this), alignof(ThisT))); in init()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DAlignmentTest.cpp139 bool isAligned; in TEST() member
154 EXPECT_EQ(isAligned(A.value(), T.offset), T.isAligned); in TEST()
155 EXPECT_EQ(isAddrAligned(A.value(), T.forgedAddr()), T.isAligned); in TEST()
/llvm-project-15.0.7/libc/src/string/memory_utils/
H A Dsized_op.h52 template <typename T, typename AddrT> static constexpr Aligned isAligned() { in isAligned() function
63 constexpr auto AS = isAligned<type, SrcAddrT>(); in nativeLoad()
74 constexpr auto AS = isAligned<type, DstAddrT>(); in nativeStore()
/llvm-project-15.0.7/mlir/include/mlir/Analysis/Presburger/
H A DPresburgerSpace.h190 bool isAligned(const PresburgerSpace &other) const;
193 bool isAligned(const PresburgerSpace &other, VarKind kind) const;
/llvm-project-15.0.7/mlir/lib/Analysis/Presburger/
H A DPresburgerSpace.cpp150 bool PresburgerSpace::isAligned(const PresburgerSpace &other) const { in isAligned() function in PresburgerSpace
157 bool PresburgerSpace::isAligned(const PresburgerSpace &other, in isAligned() function in PresburgerSpace
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAlignment.h146 inline bool isAligned(Align Lhs, uint64_t SizeInBytes) { in isAligned() function
152 return isAligned(Lhs, reinterpret_cast<uintptr_t>(Addr)); in isAddrAligned()
/llvm-project-15.0.7/compiler-rt/lib/scudo/
H A Dscudo_allocator.cpp84 static inline bool isAligned(const void *Ptr) { in isAligned() function
294 if (!Chunk::isAligned(Ptr)) in isValidPointer()
468 if (UNLIKELY(!Chunk::isAligned(Ptr))) in deallocate()
509 if (UNLIKELY(!Chunk::isAligned(OldPtr))) in reallocate()
/llvm-project-15.0.7/llvm/lib/Support/
H A DOptimizedStructLayout.cpp27 assert(isAligned(Field.Alignment, Field.Offset) && in checkValidLayout()
384 if (isAligned(FirstQueueToSearch->Alignment, LastEnd)) in performOptimizedStructLayout()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLoads.cpp29 static bool isAligned(const Value *Base, const APInt &Offset, Align Alignment, in isAligned() function
88 return isAligned(V, Offset, Alignment, DL); in isDereferenceableAndAlignedPointer()
180 return isAligned(V, Offset, Alignment, DL); in isDereferenceableAndAlignedPointer()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dmemtag_test.cpp51 EXPECT_TRUE(isAligned(Addr, archMemoryTagGranuleSize())); in SetUp()
H A Dcombined_test.cpp161 EXPECT_TRUE(scudo::isAligned(reinterpret_cast<scudo::uptr>(P), Align)); in BasicTest()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsSERegisterInfo.cpp217 (!isIntN(OffsetBitSize, Offset) || !isAligned(OffsetAlign, Offset))) { in eliminateFI()
/llvm-project-15.0.7/clang/lib/Format/
H A DWhitespaceManager.h58 unsigned StartOfTokenColumn, bool isAligned = false,
/llvm-project-15.0.7/llvm/lib/IR/
H A DDataLayout.cpp60 if (!isAligned(TyAlign, StructSize)) { in StructLayout()
75 if (!isAligned(StructAlignment, StructSize)) { in StructLayout()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DAssembler.cpp319 assert(isAligned(kFunctionAlignment, FunctionAddress) && in ExecutableFunction()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86CallFrameOptimization.cpp225 if (!isAligned(StackAlign, CC.ExpectedDist)) in isProfitable()
H A DX86InstrInfo.cpp3881 bool isAligned = in storeRegToStackSlot() local
3884 unsigned Opc = getStoreRegOpcode(SrcReg, RC, isAligned, Subtarget); in storeRegToStackSlot()
3921 bool isAligned = in loadRegFromStackSlot() local
3924 unsigned Opc = getLoadRegOpcode(DestReg, RC, isAligned, Subtarget); in loadRegFromStackSlot()
6898 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
6899 Opc = getLoadRegOpcode(Reg, RC, isAligned, Subtarget); in unfoldMemoryOperand()
6975 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
6976 unsigned Opc = getStoreRegOpcode(Reg, DstRC, isAligned, Subtarget); in unfoldMemoryOperand()
7043 Opc = getLoadRegOpcode(0, RC, isAligned, Subtarget); in unfoldMemoryOperand()
7108 bool isAligned = !MMOs.empty() && MMOs.front()->getAlign() >= Alignment; in unfoldMemoryOperand() local
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp543 if (!isAligned(I->getAlign(), Off)) in findArgParts()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1360 if (!isAligned(Alignment, V)) in SelectAnyImmediate()
1381 !isAligned(Alignment, cast<BlockAddressSDNode>(N)->getOffset())) in SelectAnyImmediate()
1406 if (!isAligned(Alignment, Const->getZExtValue())) in SelectGlobalAddress()

12