/llvm-project/clang/test/CodeGenCXX/ |
H A D | aarch64-aapcs-zerolength-bitfield.cpp | 14 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); 100 static_assert(offsetof(struct t10, bar2) == 9); [all …]
|
/llvm-project/clang/test/CodeGen/ |
H A D | arm-apcs-zerolength-bitfield.c | 16 static int arr1_offset[(offsetof(struct t1, bar) == 4) ? 0 : -1]; 25 static int arr2_offset[(offsetof(struct t2, bar) == 4) ? 0 : -1]; 34 static int arr3_offset[(offsetof(struct t3, bar) == 4) ? 0 : -1]; 43 static int arr4_offset[(offsetof(struct t4, bar) == 4) ? 0 : -1]; 52 static int arr5_offset[(offsetof(struct t5, bar) == 4) ? 0 : -1]; 62 static int arr6_offset[(offsetof(struct t6, bar2) == 5) ? 0 : -1]; 72 static int arr7_offset[(offsetof(struct t7, bar2) == 5) ? 0 : -1]; 82 static int arr8_offset[(offsetof(struct t8, bar2) == 5) ? 0 : -1]; 92 static int arr9_offset[(offsetof(struct t9, bar2) == 5) ? 0 : -1]; 102 static int arr10_offset[(offsetof(struct t10, bar2) == 5) ? 0 : -1]; [all …]
|
H A D | arm-aapcs-zerolength-bitfield.c | 13 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]; 99 static int arr10_offset[(offsetof(struct t10, bar2) == 9) ? 0 : -1]; [all …]
|
/llvm-project/clang/test/Sema/ |
H A D | pragma-align-mac68k.c | 18 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 D | pragma-pack-2.c | 13 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 D | offsetof.c | 3 #define offsetof(TYPE, MEMBER) __builtin_offsetof (TYPE, MEMBER) macro 15 int i = offsetof(PT, f); 20 x = offsetof(struct external_sun3_core, c_regs); in swap() 34 int v1 = offsetof (struct s1, a) == 0 ? 0 : f();
|
H A D | pragma-pack-5.c | 38 extern int check[offsetof(struct s3, f4) == 6 ? 1 : -1]; 46 extern int check[offsetof(struct s4, f3) == 2 ? 1 : -1];
|
/llvm-project/compiler-rt/lib/gwp_asan/ |
H A D | common.h | 168 static_assert(offsetof(AllocatorState, VersionMagic) == 0, ""); 172 static_assert(offsetof(AllocatorState, FailureAddress) == 48, ""); 174 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, ""); 177 static_assert(offsetof(AllocatorState, FailureAddress) == 48, ""); 179 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, ""); 182 static_assert(offsetof(AllocatorState, FailureAddress) == 28, ""); 184 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 544, ""); 187 static_assert(offsetof(AllocatorState, FailureAddress) == 28, ""); 189 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 552, "");
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | AMDHSAKernelDescriptor.h | 29 #ifndef offsetof 30 #define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) macro 276 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) == 279 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) == 282 static_assert(offsetof(kernel_descriptor_t, kernarg_size) == 285 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET, 287 static_assert(offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) == 290 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET, 292 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) == 295 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) == [all …]
|
/llvm-project/libcxxabi/src/ |
H A D | cxa_exception.h | 116 offsetof(__cxa_exception, unwindHeader) == 120 offsetof(__cxa_dependent_exception, unwindHeader) == 125 static_assert(offsetof(__cxa_exception, propagationCount) + 129 static_assert(offsetof(__cxa_dependent_exception, propagationCount) + 134 static_assert(offsetof(__cxa_exception, adjustedPtr) + 138 static_assert(offsetof(__cxa_dependent_exception, adjustedPtr) + 143 static_assert(offsetof(__cxa_exception, referenceCount) + 147 static_assert(offsetof(__cxa_dependent_exception, primaryException) +
|
/llvm-project/polly/lib/External/isl/include/isl/ |
H A D | arg.h | 127 .offset = offsetof(st, f), \ 138 .offset = offsetof(st, f), \ 147 .offset = offsetof(st, f), \ 166 .offset = offsetof(st, f), \ 181 _ISL_ARG_BOOL_F(offsetof(st, f),s,l,NULL,d,h,fl) 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), \ [all …]
|
/llvm-project/clang/test/C/C23/ |
H A D | n2350.c | 45 #define offsetof(TYPE, MEMBER) __builtin_offsetof(TYPE, MEMBER) macro 49 return offsetof(struct A // cpp-error {{'A' cannot be defined in a type specifier}} \ in macro() 62 #undef offsetof 64 #define offsetof(TYPE, MEMBER) (&((TYPE *)0)->MEMBER) macro 68 return offsetof(struct A // cpp-error {{'A' cannot be defined in a type specifier}} in macro_func()
|
/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | RegisterInfos_i386.h | 17 #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 D | RegisterInfos_x86_64_with_base.h | 15 #define GPR_OFFSET(regname) (LLVM_EXTENSION offsetof(GPR, regname)) 19 (LLVM_EXTENSION offsetof(UserArea, fpr) + \ 20 LLVM_EXTENSION offsetof(FPR, fxsave) + \ 21 LLVM_EXTENSION offsetof(FXSAVE, regname)) 26 (LLVM_EXTENSION offsetof(UserArea, fpr) + \ 27 LLVM_EXTENSION offsetof(FPR, xsave) + \ 28 LLVM_EXTENSION offsetof(XSAVE, ymmh[0]) + (32 * reg_index)) 34 (LLVM_EXTENSION offsetof(UserArea, fpr) + \ 35 LLVM_EXTENSION offsetof(FPR, xsave) + \ 36 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]) + GDB_REMOTE_OFFSET) [all …]
|
H A D | RegisterInfos_x86_64.h | 13 #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 …]
|
/llvm-project/flang/runtime/ |
H A D | type-info.cpp | 204 if (offset == offsetof(DerivedType, binding_)) { in Dump() 206 } else if (offset == offsetof(DerivedType, name_)) { in Dump() 208 } else if (offset == offsetof(DerivedType, sizeInBytes_)) { in Dump() 210 } else if (offset == offsetof(DerivedType, uninstantiated_)) { in Dump() 212 } else if (offset == offsetof(DerivedType, kindParameter_)) { in Dump() 214 } else if (offset == offsetof(DerivedType, lenParameterKind_)) { in Dump() 216 } else if (offset == offsetof(DerivedType, component_)) { in Dump() 218 } else if (offset == offsetof(DerivedType, procPtr_)) { in Dump() 220 } else if (offset == offsetof(DerivedType, special_)) { in Dump() 222 } else if (offset == offsetof(DerivedTyp in Dump() [all...] |
/llvm-project/libcxx/test/std/language.support/support.types/ |
H A D | offsetof.pass.cpp | 15 #ifndef offsetof 16 #error offsetof not defined 26 static_assert(noexcept(offsetof(A, x)), ""); in main()
|
/llvm-project/lldb/source/Plugins/Process/Linux/ |
H A D | NativeRegisterContextLinux_s390x.cpp | 455 return PeekUserArea(offsetof(user_regs_struct, psw), GetGPRBuffer(), in WriteGPR() 460 return PokeUserArea(offsetof(user_regs_struct, psw), GetGPRBuffer(), in ReadFPR() 465 return PeekUserArea(offsetof(user_regs_struct, fp_regs), GetGPRBuffer(), in WriteFPR() 470 return PokeUserArea(offsetof(user_regs_struct, fp_regs), GetGPRBuffer(), in DoReadRegisterSet() 506 Status error = PeekUserArea(offsetof(user_regs_struct, per_info.lowcore), in IsWatchpointHit() 519 PokeUserArea(offsetof(user_regs_struct, per_info.lowcore), &per_lowcore, in GetWatchpointHitIndex() 560 Status error = PeekUserArea(offsetof(user_regs_struct, per_info), &per_info, in ClearHardwareWatchpoint() 570 error = PokeUserArea(offsetof(user_regs_struct, per_info), &per_info, in ClearHardwareWatchpoint() 595 Status error = PeekUserArea(offsetof(user_regs_struct, per_info), &per_info, in SetHardwareWatchpoint() 605 error = PokeUserArea(offsetof(user_regs_struc in SetHardwareWatchpoint() [all...] |
/llvm-project/clang/test/Headers/ |
H A D | stddefneeds.c | 27 size_t o0 = offsetof(struct astruct, member); // c99-error{{unknown type name 'size_t'}} c99-error{… 57 size_t o1 = offsetof(struct astruct, member); // c99-error{{unknown type}} c99-error{{expected expr… 86 size_t o2 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 107 size_t o3 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 128 size_t o4 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 148 size_t o5 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 169 size_t o6 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 187 size_t o7 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 205 size_t o8 = offsetof(struct astruct, member); // c99-error{{expected expression}} c99-error{{undecl… 223 size_t o9 = offsetof(struct astruct, member); [all …]
|
/llvm-project/lldb/unittests/Process/Utility/ |
H A D | RegisterContextFreeBSDTest.cpp | 50 ::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/llvm/unittests/DebugInfo/BTF/ |
H A D | BTFParserTest.cpp | 71 Header.StrOff = offsetof(B, Strings) - sizeof(Header); in B() 82 BTF::SecLineInfo Sec = {offsetof(B::S, Foo), 2}; 84 {16, offsetof(B::S, File1), offsetof(B::S, Line1), LC(7, 1)}, 85 {32, offsetof(B::S, File1), offsetof(B::S, Line2), LC(14, 5)}, 89 BTF::SecLineInfo Sec = {offsetof(B::S, Bar), 1}; 91 {0, offsetof(B::S, File2), offsetof(B::S, Line1), LC(42, 4)}, 100 Header.LineInfoOff = offsetof(E, Lines) - sizeof(Header); in E() 160 EXPECT_EQ(BTF.findString(offsetof(MockData1::B::S, Foo)), "foo"); in TEST() 161 EXPECT_EQ(BTF.findString(offsetof(MockData1::B::S, Bar)), "bar"); in TEST() 162 EXPECT_EQ(BTF.findString(offsetof(MockData1::B::S, Line1)), "first line"); in TEST() [all …]
|
/llvm-project/lldb/source/Host/posix/ |
H A D | DomainSocket.cpp | 43 offsetof(struct sockaddr_un, sun_path) + name_offset + name.size(); in SetSockAddr() 151 if (sock_addr_len <= offsetof(struct sockaddr_un, sun_path)) in GetRemoteConnectionURI() 155 sock_addr_len - offsetof(struct sockaddr_un, sun_path) - in GetRemoteConnectionURI()
|
/llvm-project/openmp/runtime/src/ |
H A D | z_Windows_NT_util.cpp | 81 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, KernelTime) == 0); 83 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, StartAddress) == 28); 84 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, State) == 52); 86 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, StartAddress) == 32); 87 KMP_BUILD_ASSERT(offsetof(SYSTEM_THREAD, State) == 68); 109 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, NextEntryOffset) == 0); 110 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, CreateTime) == 32); 111 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, ImageName) == 56); 113 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, ProcessId) == 68); 114 KMP_BUILD_ASSERT(offsetof(SYSTEM_PROCESS_INFORMATION, HandleCount) == 76); [all …]
|
/llvm-project/clang/lib/Headers/ |
H A D | __stddef_offsetof.h | 14 #if !defined(offsetof) || \ 16 #define offsetof(t, d) __builtin_offsetof(t, d) macro
|
/llvm-project/llvm/test/tools/llvm-ml/ |
H A D | macro_function.asm | 29 offsetof MACRO structure, field macro 42 mov eax, offsetof(S1, X) 44 mov eax, offsetof(S1, Y)
|