Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_secondary.h102 CHECK(IsAligned(map_beg, page_size_)); in Allocate()
108 CHECK(IsAligned(res, alignment)); in Allocate()
109 CHECK(IsAligned(res, page_size_)); in Allocate()
176 if (!IsAligned(reinterpret_cast<uptr>(p), page_size_)) { in GetMetaData()
178 CHECK(IsAligned(reinterpret_cast<uptr>(p), page_size_)); in GetMetaData()
297 CHECK(IsAligned(p, page_size_)); in GetHeader()
305 CHECK(IsAligned((uptr)h, page_size_)); in GetUser()
H A Dsanitizer_stacktrace.cc84 IsAligned((uptr)frame, sizeof(*frame)) && in FastUnwindStack()
92 !IsAligned((uptr)caller_frame, sizeof(uhwptr))) in FastUnwindStack()
H A Dsanitizer_stacktrace_sparc.cc40 IsAligned((uptr)frame, sizeof(*frame)) && in FastUnwindStack()
H A Dsanitizer_win.cc170 if (IsAligned(mapped_addr, alignment)) in MmapAlignedOrDieOnFatalError()
180 (mapped_addr == 0 || !IsAligned(mapped_addr, alignment)); in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_posix.cc96 if (!IsAligned(res, alignment)) { in MmapAlignedOrDieOnFatalError()
H A Dsanitizer_allocator_primary32.h294 CHECK(IsAligned(res, kRegionSize)); in AllocateRegion()
H A Dsanitizer_common.h407 INLINE bool IsAligned(uptr a, uptr alignment) { in IsAligned() function
H A Dsanitizer_linux.cc182 CHECK(IsAligned(offset, 4096)); in internal_mmap()
/freebsd-12.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_poisoning.cc23 CHECK(IsAligned(p, kShadowAlignment)); in TagMemoryAligned()
24 CHECK(IsAligned(size, kShadowAlignment)); in TagMemoryAligned()
H A Dhwasan_allocator.cc387 CHECK(IsAligned((uptr)ptr, alignment)); in hwasan_posix_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_allocator_secondary.h92 DCHECK(IsAligned(ReservedBeg, PageSize)); in Allocate()
106 if (!IsAligned(UserBeg, Alignment)) { in Allocate()
H A Dscudo_allocator.cpp79 return IsAligned(reinterpret_cast<uptr>(Ptr), MinAlignment); in isAligned()
352 if (UNLIKELY(!IsAligned(UserPtr, Alignment))) { in allocate()
/freebsd-12.1/contrib/llvm/utils/TableGen/
H A DX86FoldTablesEmitter.cpp102 bool IsAligned = false; member in __anon7deb7ac00111::X86FoldTablesEmitter::X86FoldTableEntry
120 if (E.IsAligned) in operator <<()
484 Result.IsAligned = true; in addEntryWithFlags()
491 Result.IsAligned = true; in addEntryWithFlags()
/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_poisoning.cc82 CHECK(IsAligned(end, SHADOW_GRANULARITY)); in AsanPoisonOrUnpoisonIntraObjectRedzone()
83 if (!IsAligned(ptr, SHADOW_GRANULARITY)) { in AsanPoisonOrUnpoisonIntraObjectRedzone()
368 IsAligned(beg, granularity))) { in __sanitizer_annotate_contiguous_container()
H A Dasan_mac.cc97 CHECK(IsAligned(shadow_start, alignment)); in FindDynamicShadowStart()
H A Dasan_win.cc236 CHECK(IsAligned(shadow_start, alignment)); in FindDynamicShadowStart()
H A Dasan_allocator.cc438 CHECK(IsAligned(needed_size, min_alignment)); in Allocate()
479 if (!IsAligned(user_beg, alignment)) in Allocate()
950 CHECK(IsAligned((uptr)ptr, alignment)); in asan_posix_memalign()
H A Dasan_errors.cc321 if (!IsAligned(beg, granularity)) in Print()
/freebsd-12.1/contrib/compiler-rt/lib/lsan/
H A Dlsan_allocator.cc152 CHECK(IsAligned((uptr)ptr, alignment)); in lsan_posix_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/msan/
H A Dmsan_allocator.cc321 CHECK(IsAligned((uptr)ptr, alignment)); in msan_posix_memalign()
/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cc263 CHECK(IsAligned((uptr)ptr, align)); in user_posix_memalign()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonISelDAGToDAG.cpp1322 auto IsAligned = [LogAlign] (uint64_t V) -> bool { in SelectAnyImmediate() local
1331 if (!IsAligned(V)) in SelectAnyImmediate()
1351 if (LogAlign > 2 || !IsAligned(cast<BlockAddressSDNode>(N)->getOffset())) in SelectAnyImmediate()
1366 auto IsAligned = [LogAlign] (uint64_t V) -> bool { in SelectGlobalAddress() local
1382 if (!IsAligned(Const->getZExtValue())) in SelectGlobalAddress()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaExprCXX.cpp1761 bool IsAligned = false; in isUnavailableAlignedAllocationFunction() local
1762 if (FD.isReplaceableGlobalAllocationFunction(&IsAligned) && IsAligned) in isUnavailableAlignedAllocationFunction()
2313 auto IsAligned = [](OverloadCandidate &C) { in resolveAllocationOverload() local
2317 auto IsUnaligned = [&](OverloadCandidate &C) { return !IsAligned(C); }; in resolveAllocationOverload()
2323 R.getNameLoc(), IsAligned); in resolveAllocationOverload()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DDecl.cpp2818 bool FunctionDecl::isReplaceableGlobalAllocationFunction(bool *IsAligned) const { in isReplaceableGlobalAllocationFunction()
2865 if (IsAligned) in isReplaceableGlobalAllocationFunction()
2866 *IsAligned = true; in isReplaceableGlobalAllocationFunction()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DDecl.h2187 bool isReplaceableGlobalAllocationFunction(bool *IsAligned = nullptr) const;