[libcxx-commits] [PATCH] D122536: [libc++] Optimize `exception_ptr`, especially for the empty case

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Mar 26 20:31:42 PDT 2022


philnik added a comment.

I think this could be implemented in a non ABI breaking way by using `__attribute__((__gnu_inline__))`. See https://godbolt.org/z/W83rTb714 for an example. If you want to allow it in ABIv1 this way you should probably just disable the magic in ABIv2.



================
Comment at: libcxx/src/support/runtime/exception_pointer_cxxabi.ipp:21
+#endif // _LIBCPP_ABI_OPTIMIZED_EXCEPTION_PTR
   __cxa_decrement_exception_refcount(__ptr_);
 }
----------------
Is there a reason for this additional indirection?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122536/new/

https://reviews.llvm.org/D122536



More information about the libcxx-commits mailing list