Home
last modified time | relevance | path

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

12345678910>>...27

/llvm-project/compiler-rt/lib/builtins/
H A Dclear_cache.c22 uint32_t FlushInstructionCache(uintptr_t hProcess, void *lpBaseAddress,
23 uintptr_t dwSize);
24 uintptr_t GetCurrentProcess(void);
71 arg.addr = (uintptr_t)start; in __clear_cache()
72 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache()
97 const uintptr_t start_int = (uintptr_t)start; in __clear_cache()
98 const uintptr_t end_int = (uintptr_t)end; in __clear_cache()
99 uintptr_t synci_step; in __clear_cache()
103 for (uintptr_t p = start_int; p < end_int; p += synci_step) in __clear_cache()
124 uint64_t xstart = (uint64_t)(uintptr_t)start; in __clear_cache()
[all …]
H A Demutls.c37 uintptr_t skip_destructor_rounds;
38 uintptr_t size; // number of elements in the 'data' array
75 base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) & in emutls_memalign_alloc()
76 ~(uintptr_t)(align - 1)); in emutls_memalign_alloc()
142 typedef uintptr_t gcc_word;
237 static __inline uintptr_t __atomic_load_n(void *ptr, unsigned type) { in __atomic_load_n()
248 static __inline void __atomic_store_n(void *ptr, uintptr_t val, unsigned type) { in __atomic_store_n()
262 uintptr_t i; in emutls_shutdown()
282 uintptr_t index; // data[index-1] is the object address
291 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer)); in emutls_allocate_object()
[all …]
/llvm-project/compiler-rt/lib/gwp_asan/tests/
H A Dcompression.cpp18 uintptr_t Uncompressed = 0x00; in TEST()
32 uint8_t Compressed[sizeof(uintptr_t) + 1]; in TEST()
34 uintptr_t Uncompressed = 0x40; in TEST()
66 uintptr_t Uncompressed[2] = {0x00, 0x00}; in TEST()
68 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
73 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
78 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
83 EXPECT_EQ(3u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
90 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
95 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
[all …]
/llvm-project/compiler-rt/test/msan/
H A Dmmap_below_shadow.cpp19 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 = 0x4f0000000000ULL; in main()
26 const uintptr_t app_start = 0x600000000000ULL; in main()
28 uintptr_t hint = 0x4f00000000ULL; in main()
29 const uintptr_t app_start = 0x6000000000ULL; in main()
31 uintptr_t hint = 0x2f0000000000ULL; in main()
32 const uintptr_t app_start = 0x300000000000ULL; in main()
[all …]
/llvm-project/llvm/include/llvm/ADT/
H A DSmallBitVector.h39 uintptr_t X = 1;
43 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT,
64 using size_type = uintptr_t;
100 void switchToSmall(uintptr_t NewSmallBits, size_type NewSize) { in switchToSmall()
107 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge()
113 uintptr_t getSmallRawBits() const { in getSmallRawBits()
118 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits()
120 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits()
133 uintptr_t getSmallBits() const { in getSmallBits()
134 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits()
[all …]
H A DLazyAtomicPointer.h35 static constexpr uintptr_t getNull() { return 0; } in getNull()
36 static constexpr uintptr_t getBusy() { return UINTPTR_MAX; } in getBusy()
38 static T *makePointer(uintptr_t Value) { in makePointer()
42 static uintptr_t makeRaw(T *Value) { in makeRaw()
43 uintptr_t Raw = Value ? reinterpret_cast<uintptr_t>(Value) : getNull(); in makeRaw()
66 uintptr_t RawExistingValue = makeRaw(ExistingValue); in compare_exchange_weak()
81 uintptr_t RawExistingValue = makeRaw(ExistingValue); in compare_exchange_strong()
82 const uintptr_t OriginalRawExistingValue = RawExistingValue; in compare_exchange_strong()
101 uintptr_t RawValue = Storage.load(); in load()
111 uintptr_t Raw = Storage.load(); in loadOrGenerate()
[all …]
/llvm-project/libc/config/linux/
H A Dapp.h22 uintptr_t address;
27 uintptr_t size;
32 uintptr_t init_size;
36 uintptr_t align;
51 uintptr_t argc;
59 uintptr_t argv[1];
65 uintptr_t page_size;
73 uintptr_t *env_ptr;
84 uintptr_t size = 0;
88 uintptr_t add
[all...]
/llvm-project/libc/startup/linux/x86_64/
H A Dtls.cpp37 uintptr_t tls_size = app.tls.size & -app.tls.align; in init_tls()
45 // offset 0x28 (40) and is of size uintptr_t. in init_tls()
46 uintptr_t tls_size_with_addr = tls_size + sizeof(uintptr_t) + 40; in init_tls()
56 if (mmap_retval < 0 && static_cast<uintptr_t>(mmap_retval) > -app.page_size) in init_tls()
58 uintptr_t *tls_addr = reinterpret_cast<uintptr_t *>(mmap_retval); in init_tls()
62 uintptr_t end_ptr = reinterpret_cast<uintptr_t>(tls_addr) + tls_size; in init_tls()
63 *reinterpret_cast<uintptr_t *>(end_pt in init_tls()
[all...]
/llvm-project/compiler-rt/tools/gwp_asan/
H A Dstack_trace_compressor_fuzzer.cpp9 constexpr size_t kBytesForLargestVarInt = (sizeof(uintptr_t) * 8) / 7 + 1;
12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput()
18 reinterpret_cast<uintptr_t *>(Buffer2.data()), 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()
[all …]
/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerValueBitMap.h23 static const size_t kBitsInWord = (sizeof(uintptr_t) * 8);
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()
44 inline bool AddValueModPrime(uintptr_t Value) { in AddValueModPrime()
48 inline bool Get(uintptr_t Idx) { in Get()
50 uintptr_t WordIdx = Idx / kBitsInWord; in Get()
[all …]
H A DFuzzerTracePC.cpp28 ATTRIBUTES_INTERFACE_TLS_INITIAL_EXEC uintptr_t __sancov_lowest_stack;
71 void TracePC::HandlePCsInit(const uintptr_t *Start, const uintptr_t *Stop) { in HandlePCsInit()
121 void TracePC::HandleCallerCallee(uintptr_t Caller, uintptr_t Callee) { in HandleCallerCallee()
122 const uintptr_t kBits = 12; in HandleCallerCallee()
123 const uintptr_t kMask = (1 << kBits) - 1; in HandleCallerCallee()
124 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits); in HandleCallerCallee()
130 inline ALWAYS_INLINE uintptr_t GetPreviousInstructionPc(uintptr_t PC) { in GetPreviousInstructionPc()
149 ALWAYS_INLINE uintptr_t TracePC::GetNextInstructionPc(uintptr_t PC) { in GetNextInstructionPc()
161 std::vector<uintptr_t> CoveredFuncs; in UpdateObservedPCs()
202 uintptr_t TracePC::PCTableEntryIdx(const PCTableEntry *TE) { in PCTableEntryIdx()
[all …]
/llvm-project/libc/startup/linux/riscv/
H A Dtls.cpp36 const uintptr_t size_of_pointers = 2 * sizeof(uintptr_t); in init_tls()
37 uintptr_t padding = 0; in init_tls()
38 const uintptr_t ALIGNMENT_MASK = app.tls.align - 1; in init_tls()
39 uintptr_t diff = size_of_pointers & ALIGNMENT_MASK; in init_tls()
43 uintptr_t alloc_size = size_of_pointers + padding + app.tls.size; in init_tls()
53 if (mmap_ret_val < 0 && static_cast<uintptr_t>(mmap_ret_val) > -app.page_size) in init_tls()
55 uintptr_t thread_ptr = uintptr_t(reinterpret_cast<uintptr_t *>(mmap_ret_va in init_tls()
[all...]
/llvm-project/libc/startup/linux/aarch64/
H A Dtls.cpp48 const uintptr_t size_of_pointers = 2 * sizeof(uintptr_t); in init_tls()
49 uintptr_t padding = 0; in init_tls()
50 const uintptr_t ALIGNMENT_MASK = app.tls.align - 1; in init_tls()
51 uintptr_t diff = size_of_pointers & ALIGNMENT_MASK; in init_tls()
55 uintptr_t alloc_size = size_of_pointers + padding + app.tls.size; in init_tls()
65 if (mmap_ret_val < 0 && static_cast<uintptr_t>(mmap_ret_val) > -app.page_size) in init_tls()
67 uintptr_t thread_ptr = uintptr_t(reinterpret_cast<uintptr_t *>(mmap_ret_va in init_tls()
[all...]
/llvm-project/libcxx/src/include/
H A Doverridable_function.h81 // Now get a uintptr_t out of these locations, and out of the function pointer. in __is_function_overridden()
82 uintptr_t __start = reinterpret_cast<uintptr_t>(&__lcxx_override_start); in __is_function_overridden()
83 uintptr_t __end = reinterpret_cast<uintptr_t>(&__lcxx_override_end); in __is_function_overridden()
84 uintptr_t __ptr = reinterpret_cast<uintptr_t>(__fptr); in __is_function_overridden()
89 // to authenticate and re-sign it when casting it to a uintptr_t again, which will fail because we just in __is_function_overridden()
91 __ptr = reinterpret_cast<uintptr_t>(ptrauth_strip(reinterpret_cast<void*>(__ptr), ptrauth_key_function_pointer)); in __is_function_overridden()
115 uintptr_t __star
[all...]
/llvm-project/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp17 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 Dguarded_pool_allocator.cpp34 uintptr_t getPageAddr(uintptr_t Ptr, uintptr_t PageSize) { in getPageAddr()
38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo()
115 State.GuardedPagePool = reinterpret_cast<uintptr_t>(GuardedPoolMemory); in init()
117 reinterpret_cast<uintptr_t>(GuardedPoolMemory) + PoolBytesRequired; in init()
135 uintptr_t Start = reinterpret_cast<uintptr_t>(Base); in iterate()
184 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp()
194 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown()
241 uintptr_t SlotStart = State.slotToAddr(Index); in allocate()
243 uintptr_t SlotEnd = State.slotToAddr(Index) + State.maximumAllocationSize(); in allocate()
244 uintptr_t UserPtr; in allocate()
[all …]
H A Dcommon.h73 void RecordAllocation(uintptr_t Addr, size_t RequestedSize);
92 uintptr_t Addr = 0;
119 uintptr_t P = reinterpret_cast<uintptr_t>(Ptr); in pointerIsMine()
124 uintptr_t slotToAddr(size_t N) const;
130 size_t getNearestSlot(uintptr_t Ptr) const;
134 bool isGuardPage(uintptr_t Ptr) const;
139 uintptr_t internallyDetectedErrorFaultAddress() const;
146 uintptr_t GuardedPagePool = 0;
147 uintptr_t GuardedPagePoolEnd = 0;
156 uintptr_t FailureAddress = 0;
/llvm-project/libcxxabi/src/
H A Dcxa_personality.cpp163 uintptr_t readPointerHelper(const uint8_t*& p) { in readPointerHelper()
167 return static_cast<uintptr_t>(value); in readPointerHelper()
206 uintptr_t
209 uintptr_t result = 0; in readULEB128()
210 uintptr_t shift = 0; in readULEB128()
216 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readULEB128()
232 uintptr_t result = 0; in readSLEB128()
233 uintptr_t shift = 0; in readSLEB128()
239 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readSLEB128()
244 result |= static_cast<uintptr_t>(~ in readSLEB128()
365 get_shim_type_info(uint64_t ttypeIndex,const uint8_t * classInfo,uint8_t ttypeEncoding,bool native_exception,_Unwind_Exception * unwind_exception,uintptr_t=0) get_shim_type_info() argument
437 exception_spec_can_catch(int64_t specIndex,const uint8_t * classInfo,uint8_t ttypeEncoding,const __shim_type_info * excpType,void * adjustedPtr,_Unwind_Exception * unwind_exception,uintptr_t=0) exception_spec_can_catch() argument
[all...]
/llvm-project/lldb/test/API/python_api/sbvalue_const_addrof/
H A Dmain.cpp6 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/compiler-rt/test/sanitizer_common/TestCases/
H A Dsanitizer_coverage_control_flow.cpp17 uintptr_t *CFS_BEG, *CFS_END;
19 extern "C" void __sanitizer_cov_cfs_init(const uintptr_t *cfs_beg, in __sanitizer_cov_cfs_init()
20 const uintptr_t *cfs_end) { in __sanitizer_cov_cfs_init()
21 CFS_BEG = (uintptr_t *)cfs_beg; in __sanitizer_cov_cfs_init()
22 CFS_END = (uintptr_t *)cfs_end; in __sanitizer_cov_cfs_init()
28 void check_cfs_section(uintptr_t main_ptr, uintptr_t foo_ptr) { in check_cfs_section()
30 uintptr_t *pt = CFS_BEG; in check_cfs_section()
31 uintptr_t currBB; in check_cfs_section()
69 check_cfs_section((uintptr_t)(*main_ptr), (uintptr_t)(*foo_ptr)); in main()
H A Dsanitizer_coverage_inline_bool_flag.cpp22 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()
H A Dsanitizer_coverage_inline8bit_counter.cpp22 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()
/llvm-project/llvm/unittests/ADT/
H A DPointerEmbeddedIntTest.cpp20 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/libunwind/src/
H A DUnwind-wasm.c29 uintptr_t lpad_index; // landing pad index
30 uintptr_t lsda; // LSDA address
33 uintptr_t selector; // selector value
84 uintptr_t value) { in _Unwind_SetGR()
94 _LIBUNWIND_EXPORT uintptr_t _Unwind_GetIP(struct _Unwind_Context *context) { in _Unwind_GetIP()
97 uintptr_t result = in _Unwind_GetIP()
106 uintptr_t value) {} in _Unwind_SetIP()
109 _LIBUNWIND_EXPORT uintptr_t
111 uintptr_t result = ((struct _Unwind_LandingPadContext *)context)->lsda; in _Unwind_GetLanguageSpecificData()
118 _LIBUNWIND_EXPORT uintptr_t
H A DAddressSpace.hpp50 char *getFuncNameFromTBTable(uintptr_t pc, uint16_t &NameLen,
61 uintptr_t dwarf_section_length;
63 uintptr_t compact_unwind_section_length;
132 uintptr_t dso_base;
138 uintptr_t dwarf_section;
142 uintptr_t dwarf_index_section;
146 uintptr_t compact_unwind_section;
150 uintptr_t arm_section;
161 typedef uintptr_t pint_t;
193 uintptr_t getP(pint_t addr);
[all …]

12345678910>>...27