[PATCH v14 20/26] libstdc++: Optimize std::decay compilation performance

2024-02-28 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v14 15/26] c++: Implement __add_lvalue_reference built-in trait

2024-02-28 Thread Ken Matsui
existence of __add_lvalue_reference. * g++.dg/ext/add_lvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 +++ .../g++.dg/ext/add_lvalue_reference.C | 21

[PATCH v14 14/26] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-28 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v14 02/26] libstdc++: Optimize std::is_const compilation performance

2024-02-28 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_const by dispatching to the new __is_const built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_const): Use __is_const built-in trait. (is_const_v): Likewise. Signed-off-by: Ken Matsui

[PATCH v14 07/26] c++: Implement __is_unbounded_array built-in trait

2024-02-28 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_unbounded_array. * g++.dg/ext/is_unbounded_array.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 ++ gcc/cp/cp-trait.def

[PATCH v14 25/26] c++: Implement __is_nothrow_invocable built-in trait

2024-02-28 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_nothrow_invocable. * g++.dg/ext/is_nothrow_invocable.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 ++ gcc/cp/cp

[PATCH v14 06/26] libstdc++: Optimize std::is_pointer compilation performance

2024-02-28 Thread Ken Matsui
/type_traits (is_pointer): Likewise. (is_pointer_v): Likewise. Co-authored-by: Jonathan Wakely Signed-off-by: Ken Matsui --- libstdc++-v3/include/bits/cpp_type_traits.h | 31 ++- libstdc++-v3/include/std/type_traits| 44 + 2 files changed, 66

[PATCH v14 21/26] c++: Implement __rank built-in trait

2024-02-28 Thread Ken Matsui
: * g++.dg/ext/has-builtin-1.C: Test existence of __rank. * g++.dg/ext/rank.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 23

[PATCH v14 01/26] c++: Implement __is_const built-in trait

2024-02-28 Thread Ken Matsui
/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_const. * g++.dg/ext/is_const.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 4

[PATCH v13 11/26] c++: Implement __remove_extent built-in trait

2024-02-21 Thread Ken Matsui
. * g++.dg/ext/remove_extent.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 5 + gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/remove_extent.C | 16

[PATCH v13 20/26] libstdc++: Optimize std::decay compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v13 03/26] c++: Implement __is_volatile built-in trait

2024-02-21 Thread Ken Matsui
/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_volatile. * g++.dg/ext/is_volatile.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc

[PATCH v13 02/26] libstdc++: Optimize std::is_const compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_const by dispatching to the new __is_const built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_const): Use __is_const built-in trait. (is_const_v): Likewise. Signed-off-by: Ken Matsui

[PATCH v13 09/26] c++: Implement __add_pointer built-in trait

2024-02-21 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

[PATCH v13 21/26] c++: Implement __rank built-in trait

2024-02-21 Thread Ken Matsui
: * g++.dg/ext/has-builtin-1.C: Test existence of __rank. * g++.dg/ext/rank.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 23

[PATCH v13 26/26] libstdc++: Optimize std::is_nothrow_invocable compilation performance

2024-02-21 Thread Ken Matsui
/20_util/is_nothrow_invocable/incomplete_args_neg.cc: Handle the new error from __is_nothrow_invocable. * testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc: Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 4

[PATCH v13 13/26] c++: Implement __remove_all_extents built-in trait

2024-02-21 Thread Ken Matsui
existence of __remove_all_extents. * g++.dg/ext/remove_all_extents.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 3 +++ gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc

[PATCH v13 05/26] c++: Implement __is_pointer built-in trait

2024-02-21 Thread Ken Matsui
/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_pointer. * g++.dg/ext/is_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 ++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc

[PATCH v13 22/26] libstdc++: Optimize std::rank compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::rank by dispatching to the new __rank built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (rank): Use __rank built-in trait. (rank_v): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std

[PATCH v13 04/26] libstdc++: Optimize std::is_volatile compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_volatile by dispatching to the new __is_volatile built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_volatile): Use __is_volatile built-in trait. (is_volatile_v): Likewise. Signed-off-by: Ken

[PATCH v13 12/26] libstdc++: Optimize std::remove_extent compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_extent by dispatching to the new __remove_extent built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_extent): Use __remove_extent built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3

[PATCH v13 23/26] c++: Implement __is_invocable built-in trait

2024-02-21 Thread Ken Matsui
++.dg/ext/is_invocable3.C: New test. * g++.dg/ext/is_invocable4.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 + gcc/cp/cp-trait.def | 1 + gcc/cp/cp-tree.h | 2 + gcc/cp/method.cc

[PATCH v13 10/26] libstdc++: Optimize std::add_pointer compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include

[PATCH v13 07/26] c++: Implement __is_unbounded_array built-in trait

2024-02-21 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_unbounded_array. * g++.dg/ext/is_unbounded_array.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 ++ gcc/cp/cp-trait.def

[PATCH v13 01/26] c++: Implement __is_const built-in trait

2024-02-21 Thread Ken Matsui
/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_const. * g++.dg/ext/is_const.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 4

[PATCH v13 15/26] c++: Implement __add_lvalue_reference built-in trait

2024-02-21 Thread Ken Matsui
existence of __add_lvalue_reference. * g++.dg/ext/add_lvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 +++ .../g++.dg/ext/add_lvalue_reference.C | 21

[PATCH v13 06/26] libstdc++: Optimize std::is_pointer compilation performance

2024-02-21 Thread Ken Matsui
/type_traits (is_pointer): Likewise. (is_pointer_v): Likewise. Co-authored-by: Jonathan Wakely Signed-off-by: Ken Matsui --- libstdc++-v3/include/bits/cpp_type_traits.h | 31 ++- libstdc++-v3/include/std/type_traits| 44 + 2 files changed, 66

[PATCH v13 18/26] libstdc++: Optimize std::add_rvalue_reference compilation performance

2024-02-21 Thread Ken Matsui
. (__add_rvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 17bf47d59d3..18a5e4de2d3 100644 --- a/libstdc++-v3

[PATCH v13 16/26] libstdc++: Optimize std::add_lvalue_reference compilation performance

2024-02-21 Thread Ken Matsui
. (__add_lvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 34475e6279a..17bf47d59d3 100644 --- a/libstdc++-v3

[PATCH v13 25/26] c++: Implement __is_nothrow_invocable built-in trait

2024-02-21 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_nothrow_invocable. * g++.dg/ext/is_nothrow_invocable.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 ++ gcc/cp/cp

[PATCH v13 24/26] libstdc++: Optimize std::is_invocable compilation performance

2024-02-21 Thread Ken Matsui
/incomplete_args_neg.cc: Handle the new error from __is_invocable. * testsuite/20_util/is_invocable/incomplete_neg.cc: Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 4 .../testsuite/20_util/is_invocable/incomplete_args_neg.cc

[PATCH v13 14/26] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v13 08/26] libstdc++: Optimize std::is_unbounded_array compilation performance

2024-02-21 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_unbounded_array by dispatching to the new __is_unbounded_array built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_unbounded_array_v): Use __is_unbounded_array built-in trait. Signed-off-by: Ken Matsui

[PATCH v13 19/26] c++: Implement __decay built-in trait

2024-02-21 Thread Ken Matsui
: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 12 gcc/testsuite/g++.dg/ext/decay.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4 files changed, 55 insertions

[PATCH v13 17/26] c++: Implement __add_rvalue_reference built-in trait

2024-02-21 Thread Ken Matsui
existence of __add_rvalue_reference. * g++.dg/ext/add_rvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 .../g++.dg/ext/add_rvalue_reference.C | 20

[PATCH v12 26/26] libstdc++: Optimize std::is_nothrow_invocable compilation performance

2024-02-21 Thread Ken Matsui
/20_util/is_nothrow_invocable/incomplete_args_neg.cc: Handle the new error from __is_nothrow_invocable. * testsuite/20_util/is_nothrow_invocable/incomplete_neg.cc: Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 4

[PATCH v12 25/26] c++: Implement __is_nothrow_invocable built-in trait

2024-02-21 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/is_nothrow_invocable.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 ++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 4

[PATCH v11 23/24] c++: Implement __is_invocable built-in trait

2024-02-20 Thread Ken Matsui
++.dg/ext/is_invocable3.C: New test. * g++.dg/ext/is_invocable4.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 + gcc/cp/cp-trait.def | 1 + gcc/cp/cp-tree.h | 2 + gcc/cp/method.cc

[PATCH v10 24/24] libstdc++: Optimize std::is_invocable compilation performance

2024-02-20 Thread Ken Matsui
/incomplete_args_neg.cc: Handle the new error from __is_invocable. * testsuite/20_util/is_invocable/incomplete_neg.cc: Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 4 .../testsuite/20_util/is_invocable/incomplete_args_neg.cc

[PATCH v9 23/24] c++: Implement __is_invocable built-in trait

2024-02-20 Thread Ken Matsui
++.dg/ext/is_invocable3.C: New test. * g++.dg/ext/is_invocable4.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 + gcc/cp/cp-trait.def | 1 + gcc/cp/cp-tree.h | 2 + gcc/cp/method.cc

[PATCH v8 24/24] libstdc++: Optimize std::is_invocable compilation performance

2024-02-19 Thread Ken Matsui
/incomplete_args_neg.cc: Handle the new error from __is_invocable. * testsuite/20_util/is_invocable/incomplete_neg.cc: Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits| 6 ++ .../testsuite/20_util/is_invocable/incomplete_args_neg.cc

[PATCH v8 23/24] c++: Implement __is_invocable built-in trait

2024-02-19 Thread Ken Matsui
++.dg/ext/is_invocable3.C: New test. * g++.dg/ext/is_invocable4.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 6 + gcc/cp/cp-trait.def | 1 + gcc/cp/cp-tree.h | 2 + gcc/cp/method.cc

Re: [PATCH v23 32/33] c++: Implement __is_invocable built-in trait

2024-02-19 Thread Ken Matsui
On Mon, Oct 23, 2023 at 2:23 PM Jason Merrill wrote: > > On 10/20/23 17:37, Patrick Palka wrote: > > On Fri, 20 Oct 2023, Patrick Palka wrote: > > > >> On Fri, 20 Oct 2023, Patrick Palka wrote: > >> > >>> On Fri, 20 Oct 2023, Ken Matsui wrote: &

[PATCH v7 05/22] c++: Implement __is_pointer built-in trait

2024-02-19 Thread Ken Matsui
/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_pointer. * g++.dg/ext/is_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 ++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc

[PATCH v7 13/22] c++: Implement __remove_all_extents built-in trait

2024-02-19 Thread Ken Matsui
existence of __remove_all_extents. * g++.dg/ext/remove_all_extents.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 3 +++ gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc

[PATCH v7 20/22] libstdc++: Optimize std::decay compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v7 09/22] c++: Implement __add_pointer built-in trait

2024-02-19 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

[PATCH v7 18/22] libstdc++: Optimize std::add_rvalue_reference compilation performance

2024-02-19 Thread Ken Matsui
. (__add_rvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 17bf47d59d3..18a5e4de2d3 100644 --- a/libstdc++-v3

[PATCH v7 21/22] c++: Implement __rank built-in trait

2024-02-19 Thread Ken Matsui
: * g++.dg/ext/has-builtin-1.C: Test existence of __rank. * g++.dg/ext/rank.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 23

[PATCH v7 06/22] libstdc++: Optimize std::is_pointer compilation performance

2024-02-19 Thread Ken Matsui
/type_traits (is_pointer): Likewise. (is_pointer_v): Likewise. Co-authored-by: Jonathan Wakely Signed-off-by: Ken Matsui --- libstdc++-v3/include/bits/cpp_type_traits.h | 31 ++- libstdc++-v3/include/std/type_traits| 44 + 2 files changed, 66

[PATCH v7 15/22] c++: Implement __add_lvalue_reference built-in trait

2024-02-19 Thread Ken Matsui
existence of __add_lvalue_reference. * g++.dg/ext/add_lvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 +++ .../g++.dg/ext/add_lvalue_reference.C | 21

[PATCH v7 03/22] c++: Implement __is_volatile built-in trait

2024-02-19 Thread Ken Matsui
/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_volatile. * g++.dg/ext/is_volatile.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc

[PATCH v7 22/22] libstdc++: Optimize std::rank compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::rank by dispatching to the new __rank built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (rank): Use __rank built-in trait. (rank_v): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std

[PATCH v7 16/22] libstdc++: Optimize std::add_lvalue_reference compilation performance

2024-02-19 Thread Ken Matsui
. (__add_lvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 34475e6279a..17bf47d59d3 100644 --- a/libstdc++-v3

[PATCH v7 19/22] c++: Implement __decay built-in trait

2024-02-19 Thread Ken Matsui
: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 12 gcc/testsuite/g++.dg/ext/decay.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4 files changed, 55 insertions

[PATCH v7 07/22] c++: Implement __is_unbounded_array built-in trait

2024-02-19 Thread Ken Matsui
. (finish_trait_expr): Likewise. gcc/testsuite/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_unbounded_array. * g++.dg/ext/is_unbounded_array.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 ++ gcc/cp/cp-trait.def

[PATCH v7 04/22] libstdc++: Optimize std::is_volatile compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_volatile by dispatching to the new __is_volatile built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_volatile): Use __is_volatile built-in trait. (is_volatile_v): Likewise. Signed-off-by: Ken

[PATCH v7 02/22] libstdc++: Optimize std::is_const compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_const by dispatching to the new __is_const built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_const): Use __is_const built-in trait. (is_const_v): Likewise. Signed-off-by: Ken Matsui

[PATCH v7 01/22] c++: Implement __is_const built-in trait

2024-02-19 Thread Ken Matsui
/ChangeLog: * g++.dg/ext/has-builtin-1.C: Test existence of __is_const. * g++.dg/ext/is_const.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/constraint.cc | 3 +++ gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 4

[PATCH v7 12/22] libstdc++: Optimize std::remove_extent compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_extent by dispatching to the new __remove_extent built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_extent): Use __remove_extent built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3

[PATCH v7 14/22] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v7 17/22] c++: Implement __add_rvalue_reference built-in trait

2024-02-19 Thread Ken Matsui
existence of __add_rvalue_reference. * g++.dg/ext/add_rvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 .../g++.dg/ext/add_rvalue_reference.C | 20

[PATCH v7 10/22] libstdc++: Optimize std::add_pointer compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include

[PATCH v7 11/22] c++: Implement __remove_extent built-in trait

2024-02-19 Thread Ken Matsui
. * g++.dg/ext/remove_extent.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 5 + gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/remove_extent.C | 16

[PATCH v7 08/22] libstdc++: Optimize std::is_unbounded_array compilation performance

2024-02-19 Thread Ken Matsui
This patch optimizes the compilation performance of std::is_unbounded_array by dispatching to the new __is_unbounded_array built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (is_unbounded_array_v): Use __is_unbounded_array built-in trait. Signed-off-by: Ken Matsui

Re: [PATCH v5 13/14] c++: Implement __rank built-in trait

2024-02-15 Thread Ken Matsui
On Thu, Feb 15, 2024 at 6:14 PM Ken Matsui wrote: > > On Thu, Feb 15, 2024 at 1:48 PM Patrick Palka wrote: > > > > On Thu, 15 Feb 2024, Ken Matsui wrote: > > > > > This patch implements built-in trait for std::rank. > > > > > > gcc/cp/ChangeL

Re: [PATCH v5 13/14] c++: Implement __rank built-in trait

2024-02-15 Thread Ken Matsui
On Thu, Feb 15, 2024 at 1:48 PM Patrick Palka wrote: > > On Thu, 15 Feb 2024, Ken Matsui wrote: > > > This patch implements built-in trait for std::rank. > > > > gcc/cp/ChangeLog: > > > > * cp-trait.def: Define __rank. > > * sema

[PATCH v6 13/14] c++: Implement __rank built-in trait

2024-02-15 Thread Ken Matsui
of __rank. * g++.dg/ext/rank.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 23 --- gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/rank.C | 24

[PATCH v5 01/14] c++: Implement __add_pointer built-in trait

2024-02-15 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

[PATCH v5 04/14] libstdc++: Optimize std::remove_extent compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_extent by dispatching to the new __remove_extent built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_extent): Use __remove_extent built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3

[PATCH v5 12/14] libstdc++: Optimize std::decay compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v5 09/14] c++: Implement __add_rvalue_reference built-in trait

2024-02-15 Thread Ken Matsui
existence of __add_rvalue_reference. * g++.dg/ext/add_rvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 .../g++.dg/ext/add_rvalue_reference.C | 20

[PATCH v5 14/14] libstdc++: Optimize std::rank compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::rank by dispatching to the new __rank built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (rank): Use __rank built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v5 10/14] libstdc++: Optimize std::add_rvalue_reference compilation performance

2024-02-15 Thread Ken Matsui
. (__add_rvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 1f4e6db72f4..219d36fabba 100644 --- a/libstdc++-v3

[PATCH v5 05/14] c++: Implement __remove_all_extents built-in trait

2024-02-15 Thread Ken Matsui
existence of __remove_all_extents. * g++.dg/ext/remove_all_extents.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 3 +++ gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc

[PATCH v5 13/14] c++: Implement __rank built-in trait

2024-02-15 Thread Ken Matsui
of __rank. * g++.dg/ext/rank.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 18 -- gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/rank.C | 14

[PATCH v5 07/14] c++: Implement __add_lvalue_reference built-in trait

2024-02-15 Thread Ken Matsui
existence of __add_lvalue_reference. * g++.dg/ext/add_lvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 +++ .../g++.dg/ext/add_lvalue_reference.C | 21

[PATCH v5 02/14] libstdc++: Optimize std::add_pointer compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include

[PATCH v5 06/14] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v5 08/14] libstdc++: Optimize std::add_lvalue_reference compilation performance

2024-02-15 Thread Ken Matsui
. (__add_lvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 2e1cc1c1d5f..1f4e6db72f4 100644 --- a/libstdc++-v3

[PATCH v5 03/14] c++: Implement __remove_extent built-in trait

2024-02-15 Thread Ken Matsui
. * g++.dg/ext/remove_extent.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 5 + gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/remove_extent.C | 16

[PATCH v5 11/14] c++: Implement __decay built-in trait

2024-02-15 Thread Ken Matsui
: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 12 gcc/testsuite/g++.dg/ext/decay.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4 files changed, 55 insertions

[PATCH v4 06/12] libstdc++: Optimize std::remove_all_extents compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_all_extents by dispatching to the new __remove_all_extents built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_all_extents): Use __remove_all_extents built-in trait. Signed-off-by: Ken Matsui

[PATCH v4 12/12] libstdc++: Optimize std::decay compilation performance

2024-02-15 Thread Ken Matsui
This patch optimizes the compilation performance of std::decay by dispatching to the new __decay built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (decay): Use __decay built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 6 ++ 1 file

[PATCH v4 07/12] c++: Implement __add_lvalue_reference built-in trait

2024-02-15 Thread Ken Matsui
existence of __add_lvalue_reference. * g++.dg/ext/add_lvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 +++ .../g++.dg/ext/add_lvalue_reference.C | 21

[PATCH v4 09/12] c++: Implement __add_rvalue_reference built-in trait

2024-02-15 Thread Ken Matsui
existence of __add_rvalue_reference. * g++.dg/ext/add_rvalue_reference.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 8 .../g++.dg/ext/add_rvalue_reference.C | 20

[PATCH v4 11/12] c++: Implement __decay built-in trait

2024-02-15 Thread Ken Matsui
: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 12 gcc/testsuite/g++.dg/ext/decay.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4 files changed, 55 insertions

[PATCH v4 08/12] libstdc++: Optimize std::add_lvalue_reference compilation performance

2024-02-15 Thread Ken Matsui
. (__add_lvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 2e1cc1c1d5f..1f4e6db72f4 100644 --- a/libstdc++-v3

[PATCH v4 05/12] c++: Implement __remove_all_extents built-in trait

2024-02-15 Thread Ken Matsui
existence of __remove_all_extents. * g++.dg/ext/remove_all_extents.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 3 +++ gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc

[PATCH v4 10/12] libstdc++: Optimize std::add_rvalue_reference compilation performance

2024-02-15 Thread Ken Matsui
. (__add_rvalue_reference_helper): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/std/type_traits | 12 1 file changed, 12 insertions(+) diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index 1f4e6db72f4..219d36fabba 100644 --- a/libstdc++-v3

PING: [PATCH v3 0/8] Optimize more type traits

2024-02-14 Thread Ken Matsui
IIRC, all libstdc++ patches were already reviewed. It would be great if gcc patches were reviewed as well. Thank you for your time. Sincerely, Ken Matsui On Fri, Jan 5, 2024 at 9:08 PM Ken Matsui wrote: > > Changes in v3: > > - Rebased on top of master. > - Fix

[PATCH v3 1/4] c++: Implement __add_pointer built-in trait

2024-02-14 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 39 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

Re: [PATCH v2 1/4] c++: Implement __add_pointer built-in trait

2024-02-14 Thread Ken Matsui
On Wed, Feb 14, 2024 at 12:19 PM Patrick Palka wrote: > > On Wed, 14 Feb 2024, Ken Matsui wrote: > > > This patch implements built-in trait for std::add_pointer. > > > > gcc/cp/ChangeLog: > > > > * cp-trait.def: Define __add_pointer. > >

[PATCH v2 4/4] libstdc++: Optimize std::remove_extent compilation performance

2024-02-14 Thread Ken Matsui
This patch optimizes the compilation performance of std::remove_extent by dispatching to the new __remove_extent built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (remove_extent): Use __remove_extent built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3

[PATCH v2 2/4] libstdc++: Optimize std::add_pointer compilation performance

2024-02-14 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include

[PATCH v2 3/4] c++: Implement __remove_extent built-in trait

2024-02-14 Thread Ken Matsui
. * g++.dg/ext/remove_extent.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 5 + gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 +++ gcc/testsuite/g++.dg/ext/remove_extent.C | 16

[PATCH v2 1/4] c++: Implement __add_pointer built-in trait

2024-02-14 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 37 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

[PATCH 2/2] libstdc++: Optimize std::add_pointer compilation performance

2024-02-14 Thread Ken Matsui
This patch optimizes the compilation performance of std::add_pointer by dispatching to the new __add_pointer built-in trait. libstdc++-v3/ChangeLog: * include/std/type_traits (add_pointer): Use __add_pointer built-in trait. Signed-off-by: Ken Matsui --- libstdc++-v3/include

[PATCH 1/2] c++: Implement __add_pointer built-in trait

2024-02-14 Thread Ken Matsui
. * g++.dg/ext/add_pointer.C: New test. Signed-off-by: Ken Matsui --- gcc/cp/cp-trait.def | 1 + gcc/cp/semantics.cc | 9 ++ gcc/testsuite/g++.dg/ext/add_pointer.C | 37 gcc/testsuite/g++.dg/ext/has-builtin-1.C | 3 ++ 4

[PATCH] libstdc++: Use _GLIBCXX_USE_BUILTIN_TRAIT for is_same

2024-02-08 Thread Ken Matsui
(_GLIBCXX_HAVE_BUILTIN_IS_SAME): Removed. * include/std/type_traits (is_same): Use _GLIBCXX_USE_BUILTIN_TRAIT instead of _GLIBCXX_HAVE_BUILTIN_IS_SAME. (is_same_v): Likewise. Signed-off-by: Ken Matsui --- libstdc++-v3/include/bits/c++config | 4

<    1   2   3   4   5   6   7   8   9   10   >