Home
last modified time | relevance | path

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

12345

/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Daarch64-aapcs-zerolength-bitfield.cpp14 static_assert(offsetof(struct t1, bar) == 1);
23 static_assert(offsetof(struct t2, bar) == 2);
32 static_assert(offsetof(struct t3, bar) == 4);
41 static_assert(offsetof(struct t4, bar) == 8);
50 static_assert(offsetof(struct t5, bar) == 8);
60 static_assert(offsetof(struct t6, bar2) == 2);
70 static_assert(offsetof(struct t7, bar2) == 3);
80 static_assert(offsetof(struct t8, bar2) == 5);
90 static_assert(offsetof(struct t9, bar2) == 9);
122 static_assert(offsetof(struct t12, bar) == 8);
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Darm-aapcs-zerolength-bitfield.c13 static int arr1_offset[(offsetof(struct t1, bar) == 1) ? 0 : -1];
22 static int arr2_offset[(offsetof(struct t2, bar) == 2) ? 0 : -1];
31 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
40 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
49 static int arr5_offset[(offsetof(struct t5, bar) == 8) ? 0 : -1];
59 static int arr6_offset[(offsetof(struct t6, bar2) == 2) ? 0 : -1];
69 static int arr7_offset[(offsetof(struct t7, bar2) == 3) ? 0 : -1];
79 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
89 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
121 static int arr12_offset[(offsetof(struct t12, bar) == 8) ? 0 : -1];
[all …]
H A Darm-apcs-zerolength-bitfield.c17 static int arr1_offset[(offsetof(struct t1, bar) == 4) ? 0 : -1];
26 static int arr2_offset[(offsetof(struct t2, bar) == 4) ? 0 : -1];
35 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1];
44 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1];
53 static int arr5_offset[(offsetof(struct t5, bar) == 4) ? 0 : -1];
63 static int arr6_offset[(offsetof(struct t6, bar2) == 5) ? 0 : -1];
73 static int arr7_offset[(offsetof(struct t7, bar2) == 5) ? 0 : -1];
83 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1];
93 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1];
125 static int arr12_offset[(offsetof(struct t12, bar) == 4) ? 0 : -1];
[all …]
/llvm-project-15.0.7/clang/test/Sema/
H A Dpragma-align-mac68k.c18 extern int a1_0[offsetof(struct s1, f0) == 0 ? 1 : -1];
19 extern int a1_1[offsetof(struct s1, f1) == 2 ? 1 : -1];
27 extern int a2_0[offsetof(struct s2, f0) == 0 ? 1 : -1];
28 extern int a2_1[offsetof(struct s2, f1) == 2 ? 1 : -1];
36 extern int a3_0[offsetof(struct s3, f0) == 0 ? 1 : -1];
37 extern int a3_1[offsetof(struct s3, f1) == 2 ? 1 : -1];
45 extern int a4_0[offsetof(struct s4, f0) == 0 ? 1 : -1];
46 extern int a4_1[offsetof(struct s4, f1) == 1 ? 1 : -1];
96 extern int a11_0[offsetof(struct s11, f0) == 0 ? 1 : -1];
97 extern int a11_1[offsetof(struct s11, f1) == 2 ? 1 : -1];
H A Dpragma-pack-2.c13 extern int a0[offsetof(struct s0, f1) == 4 ? 1 : -1];
20 extern int a1[offsetof(struct s1, f1) == 2 ? 1 : -1];
33 extern int a3_0[offsetof(struct s3_0, f1) == 1 ? 1 : -1];
34 extern int a3_1[offsetof(struct s3_1, f1) == 4 ? 1 : -1];
47 extern int a4_0[offsetof(struct s4_0, f1) == 1 ? 1 : -1];
48 extern int a4_1[offsetof(struct s4_1, f1) == 4 ? 1 : -1];
59 extern int s5_0[offsetof(struct s5_0, f1) == 2 ? 1 : -1]; in f()
H A Doffsetof.c3 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) macro
17 x = offsetof(struct external_sun3_core, c_regs); in swap()
31 int v1 = offsetof (struct s1, a) == 0 ? 0 : f();
H A Dpragma-pack-5.c38 extern int check[offsetof(struct s3, f4) == 6 ? 1 : -1];
46 extern int check[offsetof(struct s4, f3) == 2 ? 1 : -1];
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h22 #ifndef offsetof
23 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) macro
201 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) ==
204 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) ==
207 static_assert(offsetof(kernel_descriptor_t, kernarg_size) ==
210 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET,
215 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET,
217 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) ==
220 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) ==
223 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc2) ==
[all …]
/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dcommon.h157 static_assert(offsetof(AllocatorState, VersionMagic) == 0, "");
161 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
163 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
166 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
168 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
171 static_assert(offsetof(AllocatorState, FailureAddress) == 28, "");
173 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 544, "");
176 static_assert(offsetof(AllocatorState, FailureAddress) == 28, "");
178 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 552, "");
/llvm-project-15.0.7/libcxxabi/src/
H A Dcxa_exception.h111 offsetof(__cxa_exception, unwindHeader) ==
115 offsetof(__cxa_dependent_exception, unwindHeader) ==
120 static_assert(offsetof(__cxa_exception, propagationCount) +
124 static_assert(offsetof(__cxa_dependent_exception, propagationCount) +
129 static_assert(offsetof(__cxa_exception, adjustedPtr) +
133 static_assert(offsetof(__cxa_dependent_exception, adjustedPtr) +
138 static_assert(offsetof(__cxa_exception, referenceCount) +
142 static_assert(offsetof(__cxa_dependent_exception, primaryException) +
/llvm-project-15.0.7/polly/lib/External/isl/include/isl/
H A Darg.h127 .offset = offsetof(st, f), \
138 .offset = offsetof(st, f), \
147 .offset = offsetof(st, f), \
166 .offset = offsetof(st, f), \
193 .offset = offsetof(st, f), \
204 .offset = offsetof(st, f), \
213 .offset = offsetof(st, f), \
222 .offset = offsetof(st, f), \
231 .offset = offsetof(st, f), \
240 .offset = offsetof(st, f), \
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/Process/Utility/
H A DRegisterInfos_i386.h17 #define GPR_OFFSET(regname) (LLVM_EXTENSION offsetof(GPR, regname))
21 (LLVM_EXTENSION offsetof(UserArea, i387) + \
22 LLVM_EXTENSION offsetof(FPR_i386, regname))
27 (LLVM_EXTENSION offsetof(UserArea, i387) + \
28 LLVM_EXTENSION offsetof(FPR, fxsave) + \
29 LLVM_EXTENSION offsetof(FXSAVE, xmm[7]) + sizeof(XMMReg) + \
33 (LLVM_EXTENSION offsetof(UserArea, i387) + \
34 LLVM_EXTENSION offsetof(FPR, xsave) + \
35 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]))
38 (LLVM_EXTENSION offsetof(UserArea, i387) + \
[all …]
H A DRegisterInfos_x86_64.h13 #define GPR_OFFSET(regname) (LLVM_EXTENSION offsetof(GPR, regname))
17 (LLVM_EXTENSION offsetof(UserArea, fpr) + \
18 LLVM_EXTENSION offsetof(FPR, fxsave) + \
19 LLVM_EXTENSION offsetof(FXSAVE, regname))
24 (LLVM_EXTENSION offsetof(UserArea, fpr) + \
25 LLVM_EXTENSION offsetof(FPR, xsave) + \
26 LLVM_EXTENSION offsetof(XSAVE, ymmh[0]) + (32 * reg_index))
32 (LLVM_EXTENSION offsetof(UserArea, fpr) + \
33 LLVM_EXTENSION offsetof(FPR, xsave) + \
34 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]) + GDB_REMOTE_OFFSET)
[all …]
H A DRegisterContextFreeBSD_i386.cpp56 (LLVM_EXTENSION offsetof(UserArea, dbg) + \
57 LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
H A DRegisterContextLinux_x86_64.cpp75 (LLVM_EXTENSION offsetof(UserArea, dbg) + \
76 LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
163 (LLVM_EXTENSION offsetof(GPR, orig_rax)), in RegisterContextLinux_x86_64()
H A DRegisterInfos_mips.h19 (LLVM_EXTENSION offsetof(UserArea, gpr) + \
20 LLVM_EXTENSION offsetof(GPR_linux_mips, regname))
24 (LLVM_EXTENSION offsetof(UserArea, fpr) + \
25 LLVM_EXTENSION offsetof(FPR_linux_mips, regname))
29 (LLVM_EXTENSION offsetof(UserArea, msa) + \
30 LLVM_EXTENSION offsetof(MSA_linux_mips, regname))
/llvm-project-15.0.7/flang/runtime/
H A Dtype-info.cpp186 if (offset == offsetof(DerivedType, binding_)) { in Dump()
188 } else if (offset == offsetof(DerivedType, name_)) { in Dump()
190 } else if (offset == offsetof(DerivedType, sizeInBytes_)) { in Dump()
192 } else if (offset == offsetof(DerivedType, uninstantiated_)) { in Dump()
194 } else if (offset == offsetof(DerivedType, kindParameter_)) { in Dump()
196 } else if (offset == offsetof(DerivedType, lenParameterKind_)) { in Dump()
198 } else if (offset == offsetof(DerivedType, component_)) { in Dump()
200 } else if (offset == offsetof(DerivedType, procPtr_)) { in Dump()
202 } else if (offset == offsetof(DerivedType, special_)) { in Dump()
204 } else if (offset == offsetof(DerivedType, specialBitSet_)) { in Dump()
[all …]
/llvm-project-15.0.7/libcxx/test/std/language.support/support.types/
H A Doffsetof.pass.cpp15 #ifndef offsetof
16 #error offsetof not defined
26 static_assert(noexcept(offsetof(A, x)), ""); in main()
/llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/
H A DNativeRegisterContextLinux_s390x.cpp443 return PeekUserArea(offsetof(user_regs_struct, psw), GetGPRBuffer(), in ReadGPR()
448 return PokeUserArea(offsetof(user_regs_struct, psw), GetGPRBuffer(), in WriteGPR()
453 return PeekUserArea(offsetof(user_regs_struct, fp_regs), GetGPRBuffer(), in ReadFPR()
458 return PokeUserArea(offsetof(user_regs_struct, fp_regs), GetGPRBuffer(), in WriteFPR()
494 Status error = PeekUserArea(offsetof(user_regs_struct, per_info.lowcore), in IsWatchpointHit()
507 PokeUserArea(offsetof(user_regs_struct, per_info.lowcore), &per_lowcore, in IsWatchpointHit()
548 Status error = PeekUserArea(offsetof(user_regs_struct, per_info), &per_info, in ClearHardwareWatchpoint()
558 error = PokeUserArea(offsetof(user_regs_struct, per_info), &per_info, in ClearHardwareWatchpoint()
583 Status error = PeekUserArea(offsetof(user_regs_struct, per_info), &per_info, in SetHardwareWatchpoint()
593 error = PokeUserArea(offsetof(user_regs_struct, per_info), &per_info, in SetHardwareWatchpoint()
/llvm-project-15.0.7/lldb/unittests/Process/Utility/
H A DRegisterContextFreeBSDTest.cpp50 ::testing::Pair(offsetof(reg, r_##regname), sizeof(reg::r_##regname)))
52 EXPECT_OFF(dr##num##_x86_64, offsetof(dbreg, dr[num]), sizeof(dbreg::dr[num]))
155 ::testing::Pair(offsetof(native_i386_regs, r_##regname), \
158 EXPECT_OFF(dr##num##_i386, offsetof(native_i386_dbregs, dr[num]), \
250 ::testing::Pair(offsetof(reg, fbsd_reg), sizeof(reg::fbsd_reg)))
253 ::testing::Pair(offsetof(vfp_state, fbsd_reg) + base_offset, \
321 ::testing::Pair(offsetof(reg, fbsd_reg), sizeof(reg::fbsd_reg)))
324 ::testing::Pair(offsetof(fpreg, fbsd_reg) + base_offset, \
411 ::testing::Pair(offsetof(reg, r_regs[fbsd_regno]), \
416 ::testing::Pair(offsetof(fpreg, r_regs[fbsd_regno]) + base_offset, \
[all …]
/llvm-project-15.0.7/lldb/source/Host/posix/
H A DDomainSocket.cpp25 (offsetof(struct sockaddr_un, sun_path) + strlen((ptr)->sun_path))
49 offsetof(struct sockaddr_un, sun_path) + name_offset + name.size(); in SetSockAddr()
137 if (sock_addr_len <= offsetof(struct sockaddr_un, sun_path)) in GetSocketName()
141 sock_addr_len - offsetof(struct sockaddr_un, sun_path) - in GetSocketName()
/llvm-project-15.0.7/openmp/runtime/src/
H A Dz_Windows_NT_util.cpp80 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, KernelTime) == 0);
82 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, StartAddress) == 28);
83 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, State) == 52);
85 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, StartAddress) == 32);
86 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, State) == 68);
109 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, CreateTime) == 32);
110 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, ImageName) == 56);
112 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, ProcessId) == 68);
116 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, Threads) == 184);
118 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, ProcessId) == 80);
[all …]
/llvm-project-15.0.7/llvm/test/tools/llvm-ml/
H A Dmacro_function.asm29 offsetof MACRO structure, field macro
42 mov eax, offsetof(S1, X)
44 mov eax, offsetof(S1, Y)
/llvm-project-15.0.7/libcxx/test/std/depr/depr.c.headers/
H A Dstddef_h.pass.cpp21 #ifndef offsetof
22 #error offsetof not defined
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_platform_limits_solaris.h483 COMPILER_CHECK(offsetof(__sanitizer_##CLASS, MEMBER) == \
484 offsetof(CLASS, MEMBER))
491 COMPILER_CHECK(offsetof(struct __sanitizer_##CLASS, MEMBER) == \
492 offsetof(struct CLASS, MEMBER))

12345