diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2021-07-15 11:07:12 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2021-07-15 15:58:11 -0400 |
commit | 478cc962ad174bfc64c573152a0658935651fce3 (patch) | |
tree | 092b98b66e17b719def4a96973fcfb7851187538 /gcc/tree-vect-patterns.c | |
parent | f0500db3692276f60e0562c17c87a0cb03e34398 (diff) | |
download | gcc-478cc962ad174bfc64c573152a0658935651fce3.zip gcc-478cc962ad174bfc64c573152a0658935651fce3.tar.gz gcc-478cc962ad174bfc64c573152a0658935651fce3.tar.bz2 |
Add gimple_range_type for statements.
The existing mechanisms for picking up the type of a statement are
inconsistent with the needs of ranger. Encapsulate all the bits
required to pick up the return type of a statement in one place, and check
whether the type is supported.
* gimple-range-fold.cc (adjust_pointer_diff_expr): Use
gimple_range_type.
(fold_using_range::fold_stmt): Ditto.
(fold_using_range::range_of_range_op): Ditto.
(fold_using_range::range_of_phi): Ditto.
(fold_using_range::range_of_call): Ditto.
(fold_using_range::range_of_builtin_ubsan_call): Ditto.
(fold_using_range::range_of_builtin_call): Ditto.
(fold_using_range::range_of_cond_expr): Ditto.
* gimple-range-fold.h (gimple_range_type): New.
Diffstat (limited to 'gcc/tree-vect-patterns.c')
0 files changed, 0 insertions, 0 deletions