| /llvm-project-15.0.7/compiler-rt/lib/builtins/ |
| H A D | clear_cache.c | 72 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 95 const uintptr_t start_int = (uintptr_t)start; in __clear_cache() 96 const uintptr_t end_int = (uintptr_t)end; in __clear_cache() 99 cacheflush(start, (uintptr_t)end - (uintptr_t)start, BCACHE); in __clear_cache() 138 const size_t len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 141 const uintptr_t start_line = ((uintptr_t)start) & mask; in __clear_cache() 142 const uintptr_t end_line = ((uintptr_t)start + len + line_size - 1) & mask; in __clear_cache() 153 const size_t len = (uintptr_t)end - (uintptr_t)start; in __clear_cache() 156 const uintptr_t start_dword = ((uintptr_t)start) & mask; in __clear_cache() 157 const uintptr_t end_dword = ((uintptr_t)start + len + dword_size - 1) & mask; in __clear_cache() [all …]
|
| H A D | emutls.c | 37 uintptr_t skip_destructor_rounds; 38 uintptr_t size; // number of elements in the 'data' array 76 ~(uintptr_t)(align - 1)); in emutls_memalign_alloc() 142 typedef uintptr_t gcc_word; 262 uintptr_t i; in emutls_shutdown() 282 uintptr_t index; // data[index-1] is the object address 338 static __inline uintptr_t emutls_new_data_array_size(uintptr_t index) { in emutls_new_data_array_size() 348 static __inline uintptr_t emutls_asize(uintptr_t N) { in emutls_asize() 355 emutls_get_address_array(uintptr_t index) { in emutls_get_address_array() 366 uintptr_t orig_size = array->size; in emutls_get_address_array() [all …]
|
| H A D | gcc_personality_v0.c | 71 static uintptr_t readEncodedPointer(const uint8_t **data, uint8_t encoding) { in readEncodedPointer() 73 uintptr_t result = 0; in readEncodedPointer() 81 result = *((const uintptr_t *)p); in readEncodedPointer() 82 p += sizeof(uintptr_t); in readEncodedPointer() 124 result += (uintptr_t)(*data); in readEncodedPointer() 138 result = *((const uintptr_t *)result); in readEncodedPointer() 207 uintptr_t pc = (uintptr_t)_Unwind_GetIP(context) - 1; in __gcc_personality_sj0() 208 uintptr_t funcStart = (uintptr_t)_Unwind_GetRegionStart(context); in __gcc_personality_sj0() 209 uintptr_t pcOffset = pc - funcStart; in __gcc_personality_sj0() 227 uintptr_t start = readEncodedPointer(&p, callSiteEncoding); in __gcc_personality_sj0() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/tests/ |
| H A D | compression.cpp | 18 uintptr_t Uncompressed = 0x00; in TEST() 34 uintptr_t Uncompressed = 0x40; in TEST() 139 uintptr_t *Uncompressed = in runPackUnpack() 140 static_cast<uintptr_t *>(alloca(NumEntries * sizeof(uintptr_t))); in runPackUnpack() 163 uintptr_t Uncompressed[2]; in TEST() 172 uintptr_t Uncompressed[2]; in TEST() 180 uintptr_t Test[] = {1, 2, 3}; in TEST() 185 uintptr_t Test[] = {3, 2, 1}; in TEST() 224 uintptr_t Uncompressed; in TEST() 232 uintptr_t Uncompressed; in TEST() [all …]
|
| H A D | crash_handler_api.cpp | 24 size_t metadata(uintptr_t Addr, uintptr_t Size, bool IsDeallocated) { in metadata() 62 uintptr_t Buffer[kNumBacktraceConstants]; in checkBacktrace() 78 void checkMetadata(size_t Index, uintptr_t ErrorPtr) { in checkMetadata() 109 uintptr_t UnknownPtr = reinterpret_cast<uintptr_t>(&State); in TEST_F() 123 uintptr_t FailureAddress = 0x9000; in TEST_F() 135 uintptr_t FailureAddress = 0x7000; in TEST_F() 150 uintptr_t FailureAddress = 0x7001; in TEST_F() 163 uintptr_t FailureAddress = 0x7001; in TEST_F() 178 uintptr_t FailureAddress = 0x7001; in TEST_F() 190 uintptr_t FailureAddress = 0x6000; in TEST_F() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/msan/ |
| H A D | mmap_below_shadow.cpp | 19 uintptr_t hint = 0x0f0000000000ULL; in main() 20 const uintptr_t app_start = 0x000000000000ULL; in main() 22 uintptr_t hint = 0x4f0000000000ULL; in main() 23 const uintptr_t app_start = 0x600000000000ULL; in main() 25 uintptr_t hint = 0x4f00000000ULL; in main() 26 const uintptr_t app_start = 0x6000000000ULL; in main() 28 uintptr_t hint = 0x2f0000000000ULL; in main() 31 uintptr_t hint = 0x07f000000000ULL; in main() 34 uintptr_t hint = 0x4f0000000ULL; in main() 35 const uintptr_t app_start = 0x7000000000ULL; in main() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | SmallBitVector.h | 39 uintptr_t X = 1; 64 using size_type = uintptr_t; 336 uintptr_t NewBits = t ? ~uintptr_t(0) << getSmallSize() : 0; 392 uintptr_t EMask = ((uintptr_t)1) << E; in set() 393 uintptr_t IMask = ((uintptr_t)1) << I; in set() 423 uintptr_t EMask = ((uintptr_t)1) << E; in reset() 424 uintptr_t IMask = ((uintptr_t)1) << I; in reset() 682 X = (uintptr_t)-1; in invalid() 686 ArrayRef<uintptr_t> getData(uintptr_t &Store) const { in getData() 697 uintptr_t M = Mask[0]; in applyMask() [all …]
|
| /llvm-project-15.0.7/compiler-rt/tools/gwp_asan/ |
| H A D | stack_trace_compressor_fuzzer.cpp | 9 constexpr size_t kBytesForLargestVarInt = (sizeof(uintptr_t) * 8) / 7 + 1; 12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput() 19 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput() 23 reinterpret_cast<const uintptr_t *>(Data), Size / sizeof(uintptr_t), in LLVMFuzzerTestOneInput() 29 reinterpret_cast<uintptr_t *>(Buffer2.data()), in LLVMFuzzerTestOneInput() 30 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput() 33 if (DecodedElements != Size / sizeof(uintptr_t)) in LLVMFuzzerTestOneInput() 37 const uintptr_t *FuzzPtrs = reinterpret_cast<const uintptr_t *>(Data); in LLVMFuzzerTestOneInput() 38 const uintptr_t *DecodedPtrs = in LLVMFuzzerTestOneInput() 39 reinterpret_cast<const uintptr_t *>(Buffer2.data()); in LLVMFuzzerTestOneInput() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerValueBitMap.h | 33 inline bool AddValue(uintptr_t Value) { in AddValue() 34 uintptr_t Idx = Value % kMapSizeInBits; in AddValue() 35 uintptr_t WordIdx = Idx / kBitsInWord; in AddValue() 36 uintptr_t BitIdx = Idx % kBitsInWord; in AddValue() 37 uintptr_t Old = Map[WordIdx]; in AddValue() 38 uintptr_t New = Old | (1ULL << BitIdx); in AddValue() 48 inline bool Get(uintptr_t Idx) { in Get() 50 uintptr_t WordIdx = Idx / kBitsInWord; in Get() 51 uintptr_t BitIdx = Idx % kBitsInWord; in Get() 61 if (uintptr_t M = Map[i]) in ForEach() [all …]
|
| H A D | FuzzerTracePC.cpp | 477 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_pc_indir() 485 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp8() 496 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp8() 504 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp4() 512 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp4() 520 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp2() 528 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp2() 536 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_cmp1() 544 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_const_cmp1() 563 uintptr_t PC = reinterpret_cast<uintptr_t>(GET_CALLER_PC()); in __sanitizer_cov_trace_switch() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/gwp_asan/ |
| H A D | stack_trace_compressor.cpp | 17 size_t varIntEncode(uintptr_t Value, uint8_t *Out, size_t OutLen) { in varIntEncode() 35 size_t varIntDecode(const uint8_t *In, size_t InLen, uintptr_t *Out) { in varIntDecode() 40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift; in varIntDecode() 48 if (Shift >= sizeof(uintptr_t) * 8) in varIntDecode() 54 uintptr_t zigzagEncode(uintptr_t Value) { in zigzagEncode() 55 uintptr_t Encoded = Value << 1; in zigzagEncode() 61 uintptr_t zigzagDecode(uintptr_t Value) { in zigzagDecode() 62 uintptr_t Decoded = Value >> 1; in zigzagDecode() 69 size_t pack(const uintptr_t *Unpacked, size_t UnpackedSize, uint8_t *Packed, in pack() 73 uintptr_t Diff = Unpacked[CurrentDepth]; in pack() [all …]
|
| H A D | guarded_pool_allocator.cpp | 33 uintptr_t getPageAddr(uintptr_t Ptr, uintptr_t PageSize) { in getPageAddr() 37 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo() 125 uintptr_t Start = reinterpret_cast<uintptr_t>(Base); in iterate() 173 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp() 183 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown() 230 uintptr_t SlotStart = State.slotToAddr(Index); in allocate() 233 uintptr_t UserPtr; in allocate() 261 void GuardedPoolAllocator::trapOnAddress(uintptr_t Address, Error E) { in trapOnAddress() 281 uintptr_t UPtr = reinterpret_cast<uintptr_t>(Ptr); in deallocate() 283 uintptr_t SlotStart = State.slotToAddr(Slot); in deallocate() [all …]
|
| H A D | common.h | 73 void RecordAllocation(uintptr_t Addr, size_t RequestedSize); 92 uintptr_t Addr = 0; 113 uintptr_t P = reinterpret_cast<uintptr_t>(Ptr); in pointerIsMine() 118 uintptr_t slotToAddr(size_t N) const; 124 size_t getNearestSlot(uintptr_t Ptr) const; 128 bool isGuardPage(uintptr_t Ptr) const; 135 uintptr_t GuardedPagePool = 0; 136 uintptr_t GuardedPagePoolEnd = 0; 145 uintptr_t FailureAddress = 0;
|
| /llvm-project-15.0.7/libc/loader/linux/aarch64/ |
| H A D | start.cpp | 57 const uintptr_t size_of_pointers = 2 * sizeof(uintptr_t); in init_tls() 58 uintptr_t padding = 0; in init_tls() 59 const uintptr_t ALIGNMENT_MASK = app.tls.align - 1; in init_tls() 60 uintptr_t diff = size_of_pointers & ALIGNMENT_MASK; in init_tls() 64 uintptr_t alloc_size = size_of_pointers + padding + app.tls.size; in init_tls() 76 uintptr_t thread_ptr = uintptr_t(reinterpret_cast<uintptr_t *>(mmap_ret_val)); in init_tls() 77 uintptr_t tls_addr = thread_ptr + size_of_pointers + padding; in init_tls() 86 void cleanup_tls(uintptr_t addr, uintptr_t size) { in cleanup_tls() 109 reinterpret_cast<uintptr_t *>(__builtin_frame_address(0)) + 2); in _start() 128 uintptr_t programHdrCount; in _start() [all …]
|
| /llvm-project-15.0.7/lldb/test/API/python_api/sbvalue_const_addrof/ |
| H A D | main.cpp | 6 uintptr_t r0; 7 uintptr_t r1; 8 uintptr_t r2; 9 uintptr_t r3; 10 uintptr_t r4; 11 uintptr_t pc; 12 uintptr_t fp; 13 uintptr_t sp; 24 ThreadInfo g_thread2 = { 0x2222, "thread2", { 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, (uintptr_t)&m… 25 ThreadInfo g_thread1 = { 0x1111, "thread1", { 0x1000, 0x1001, 0x1002, 0x1003, 0x1004, (uintptr_t)&m…
|
| /llvm-project-15.0.7/libc/config/linux/ |
| H A D | app.h | 21 uintptr_t address; 26 uintptr_t size; 31 uintptr_t init_size; 35 uintptr_t align; 67 uintptr_t pageSize; 83 uintptr_t size = 0; 87 uintptr_t addr = 0; 92 uintptr_t tp = 0; 102 void cleanup_tls(uintptr_t tls_addr, uintptr_t tls_size);
|
| /llvm-project-15.0.7/libcxxabi/src/ |
| H A D | cxa_personality.cpp | 206 uintptr_t 209 uintptr_t result = 0; in readULEB128() 210 uintptr_t shift = 0; in readULEB128() 232 uintptr_t result = 0; in readSLEB128() 233 uintptr_t shift = 0; in readSLEB128() 256 uintptr_t 259 uintptr_t result = 0; in readEncodedPointer() 345 uintptr_t offset = *reinterpret_cast<const uintptr_t*>(ptr); in read_target2_value() 456 static_cast<uintptr_t>(specIndex) * sizeof(uintptr_t)); in exception_spec_can_catch() 637 uintptr_t base = 0; in scan_eh_tab() [all …]
|
| /llvm-project-15.0.7/libc/loader/linux/x86_64/ |
| H A D | start.cpp | 47 uintptr_t tlsSize = app.tls.size & -app.tls.align; in init_tls() 54 uintptr_t tlsSizeWithAddr = tlsSize + sizeof(uintptr_t); in init_tls() 66 uintptr_t *tlsAddr = reinterpret_cast<uintptr_t *>(mmapRetVal); in init_tls() 70 uintptr_t endPtr = reinterpret_cast<uintptr_t>(tlsAddr) + tlsSize; in init_tls() 71 *reinterpret_cast<uintptr_t *>(endPtr) = endPtr; in init_tls() 77 tls_descriptor = {tlsSizeWithAddr, uintptr_t(tlsAddr), endPtr}; in init_tls() 81 void cleanup_tls(uintptr_t addr, uintptr_t size) { in cleanup_tls() 88 static bool set_thread_ptr(uintptr_t val) { in set_thread_ptr() 108 reinterpret_cast<uintptr_t *>(__builtin_frame_address(0)) + 1); in _start() 141 uintptr_t programHdrCount; in _start() [all …]
|
| /llvm-project-15.0.7/compiler-rt/test/sanitizer_common/TestCases/ |
| H A D | sanitizer_coverage_inline8bit_counter.cpp | 22 uintptr_t FirstPC; 23 uintptr_t FirstPCFlag; 25 extern "C" void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg, in __sanitizer_cov_pcs_init() 26 const uintptr_t *pcs_end) { in __sanitizer_cov_pcs_init() 27 const uintptr_t *B = (const uintptr_t *)pcs_beg; in __sanitizer_cov_pcs_init() 28 const uintptr_t *E = (const uintptr_t *)pcs_end; in __sanitizer_cov_pcs_init() 38 assert(FirstPC == (uintptr_t)&main); in main()
|
| H A D | sanitizer_coverage_inline_bool_flag.cpp | 22 uintptr_t FirstPC; 23 uintptr_t FirstPCFlag; 25 extern "C" void __sanitizer_cov_pcs_init(const uintptr_t *pcs_beg, in __sanitizer_cov_pcs_init() 26 const uintptr_t *pcs_end) { in __sanitizer_cov_pcs_init() 27 const uintptr_t *B = (const uintptr_t *)pcs_beg; in __sanitizer_cov_pcs_init() 28 const uintptr_t *E = (const uintptr_t *)pcs_end; in __sanitizer_cov_pcs_init() 37 assert(FirstPC == (uintptr_t)&main); in main()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | PointerEmbeddedIntTest.cpp | 20 EXPECT_EQ((int)sizeof(uintptr_t) * CHAR_BIT - CHAR_BIT, in TEST() 50 PointerEmbeddedInt<uintptr_t, CHAR_BIT> U = 42, USaturated = 255; in TEST() 60 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 61 UMax = std::numeric_limits<uintptr_t>::max() >> 1, in TEST() 62 UMin = std::numeric_limits<uintptr_t>::min() >> 1; in TEST() 63 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, UMax); in TEST() 64 EXPECT_EQ(std::numeric_limits<uintptr_t>::min() >> 1, UMin); in TEST() 72 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 73 Max = std::numeric_limits<uintptr_t>::max() >> 1; in TEST() 75 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, in TEST()
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | block-return.c | 55 typedef unsigned int * uintptr_t; typedef 62 …Boolean (^isEqual)(const CFBasicHash *, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_ke… 68 Boolean (*value_equal)(uintptr_t, uintptr_t) = 0; in foo3() 70 …cb.isEqual = ^(const CFBasicHash *table, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_k… in foo3() 71 …return (Boolean)(uintptr_t)INVOKE_CALLBACK2(value_equal, (uintptr_t)stack_value_or_key1, (uintptr_… in foo3()
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | pointer_comparison_test_helper.h | 19 typedef CompareTemplate<std::uintptr_t> UIntCompare; in do_pointer_comparison_test() 35 std::uintptr_t lhs_uint = reinterpret_cast<std::uintptr_t>(lhs); in do_pointer_comparison_test() 36 std::uintptr_t rhs_uint = reinterpret_cast<std::uintptr_t>(rhs); in do_pointer_comparison_test() 51 std::uintptr_t lhs_uint = reinterpret_cast<std::uintptr_t>(lhs); in do_pointer_comparison_test() 52 std::uintptr_t rhs_uint = reinterpret_cast<std::uintptr_t>(rhs); in do_pointer_comparison_test()
|
| /llvm-project-15.0.7/llvm/unittests/ExecutionEngine/MCJIT/ |
| H A D | MCJITCAPITest.cpp | 76 uintptr_t ReservedCodeSize; 77 uintptr_t UsedCodeSize; 78 uintptr_t ReservedDataSizeRO; 79 uintptr_t UsedDataSizeRO; 80 uintptr_t ReservedDataSizeRW; 81 uintptr_t UsedDataSizeRW; 90 void reserveAllocationSpace(uintptr_t CodeSize, uint32_t CodeAlign, in reserveAllocationSpace() 92 uintptr_t DataSizeRW, in reserveAllocationSpace() 99 void useSpace(uintptr_t* UsedSize, uintptr_t Size, unsigned Alignment) { in useSpace() 105 uint8_t *allocateDataSection(uintptr_t Size, unsigned Alignment, in allocateDataSection() [all …]
|
| /llvm-project-15.0.7/libunwind/src/ |
| H A D | AddressSpace.hpp | 128 uintptr_t dso_base; 134 uintptr_t dwarf_section; 138 uintptr_t dwarf_index_section; 142 uintptr_t compact_unwind_section; 146 uintptr_t arm_section; 157 typedef uintptr_t pint_t; 189 uintptr_t getP(pint_t addr); 401 uintptr_t targetAddr; 416 uintptr_t end = begin + phdr->p_memsz; in checkAddrInSegment() 566 info.dso_base = (uintptr_t)mods[i]; in findUnwindSections() [all …]
|