Skip to content

Commit c2fc28d

Browse files
committed
memory layout change
1 parent f690794 commit c2fc28d

File tree

1 file changed

+29
-17
lines changed

1 file changed

+29
-17
lines changed

sycl/test/abi/layout_handler.cpp

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// RUN: %clangxx -fsycl -c -fno-color-diagnostics -Xclang -fdump-record-layouts %s
21
// RUN: %clangxx -fsycl -c -fno-color-diagnostics -Xclang -fdump-record-layouts %s | FileCheck %s
32
// REQUIRES: linux
43
// UNSUPPORTED: libcxx
@@ -173,19 +172,32 @@ void foo() {
173172
// CHECK: 472 | std::_Vector_base<class std::shared_ptr<class sycl::detail::event_impl>, class std::allocator<class std::shared_ptr<class sycl::detail::event_impl> > >::pointer _M_start
174173
// CHECK-NEXT: 480 | std::_Vector_base<class std::shared_ptr<class sycl::detail::event_impl>, class std::allocator<class std::shared_ptr<class sycl::detail::event_impl> > >::pointer _M_finish
175174
// CHECK-NEXT: 488 | std::_Vector_base<class std::shared_ptr<class sycl::detail::event_impl>, class std::allocator<class std::shared_ptr<class sycl::detail::event_impl> > >::pointer _M_end_of_storage
176-
// CHECK-NEXT: 496 | _Bool MIsHost
177-
// CHECK-NEXT: 504 | struct sycl::detail::code_location MCodeLoc
178-
// CHECK-NEXT: 504 | const char * MFileName
179-
// CHECK-NEXT: 512 | const char * MFunctionName
180-
// CHECK-NEXT: 520 | unsigned long MLineNo
181-
// CHECK-NEXT: 528 | unsigned long MColumnNo
182-
// CHECK-NEXT: 536 | _Bool MIsFinalized
183-
// CHECK-NEXT: 544 | class sycl::event MLastEvent
184-
// CHECK-NEXT: 544 | class std::shared_ptr<class sycl::detail::event_impl> impl
185-
// CHECK-NEXT: 544 | class std::__shared_ptr<class sycl::detail::event_impl, __gnu_cxx::_S_atomic> (base)
186-
// CHECK-NEXT: 544 | class std::__shared_ptr_access<class sycl::detail::event_impl, __gnu_cxx::_S_atomic, false, false> (base) (empty)
187-
// CHECK-NEXT: 544 | std::__shared_ptr<class sycl::detail::event_impl, __gnu_cxx::_S_atomic>::element_type * _M_ptr
188-
// CHECK-NEXT: 552 | class std::__shared_count<__gnu_cxx::_S_atomic> _M_refcount
189-
// CHECK-NEXT: 552 | _Sp_counted_base<(enum __gnu_cxx::_Lock_policy)2U> * _M_pi
190-
// CHECK-NEXT: | [sizeof=560, dsize=560, align=8,
191-
// CHECK-NEXT: | nvsize=560, nvalign=8]
175+
// CHECK-NEXT: 496 | class std::basic_string<char> HostPipeName
176+
// CHECK-NEXT: 496 | struct std::basic_string<char>::_Alloc_hider _M_dataplus
177+
// CHECK-NEXT: 496 | class std::allocator<char> (base) (empty)
178+
// CHECK-NEXT: 496 | class __gnu_cxx::new_allocator<char> (base) (empty)
179+
// CHECK-NEXT: 496 | std::basic_string<char>::pointer _M_p
180+
// CHECK-NEXT: 504 | std::basic_string<char>::size_type _M_string_length
181+
// CHECK-NEXT: 512 | union std::basic_string<char>::(anonymous at /usr/lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/basic_string.h:175:7)
182+
// CHECK-NEXT: 512 | char[16] _M_local_buf
183+
// CHECK-NEXT: 512 | std::basic_string<char>::size_type _M_allocated_capacity
184+
// CHECK-NEXT: 528 | void * HostPipePtr
185+
// CHECK-NEXT: 536 | _Bool HostPipeBlocking
186+
// CHECK-NEXT: 544 | size_t HostPipeTypeSize
187+
// CHECK-NEXT: 552 | _Bool HostPipeRead
188+
// CHECK-NEXT: 553 | _Bool MIsHost
189+
// CHECK-NEXT: 560 | struct sycl::detail::code_location MCodeLoc
190+
// CHECK-NEXT: 560 | const char * MFileName
191+
// CHECK-NEXT: 568 | const char * MFunctionName
192+
// CHECK-NEXT: 576 | unsigned long MLineNo
193+
// CHECK-NEXT: 584 | unsigned long MColumnNo
194+
// CHECK-NEXT: 592 | _Bool MIsFinalized
195+
// CHECK-NEXT: 600 | class sycl::event MLastEvent
196+
// CHECK-NEXT: 600 | class std::shared_ptr<class sycl::detail::event_impl> impl
197+
// CHECK-NEXT: 600 | class std::__shared_ptr<class sycl::detail::event_impl, __gnu_cxx::_S_atomic> (base)
198+
// CHECK-NEXT: 600 | class std::__shared_ptr_access<class sycl::detail::event_impl, __gnu_cxx::_S_atomic, false, false> (base) (empty)
199+
// CHECK-NEXT: 600 | std::__shared_ptr<class sycl::detail::event_impl, __gnu_cxx::_S_atomic>::element_type * _M_ptr
200+
// CHECK-NEXT: 608 | class std::__shared_count<__gnu_cxx::_S_atomic> _M_refcount
201+
// CHECK-NEXT: 608 | _Sp_counted_base<(enum __gnu_cxx::_Lock_policy)2U> * _M_pi
202+
// CHECK-NEXT: | [sizeof=616, dsize=616, align=8,
203+
// CHECK-NEXT: | nvsize=616, nvalign=8]

0 commit comments

Comments
 (0)