diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-08-31 14:07:13 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-09-22 14:14:34 -0400 |
commit | 24c473a14d3cbe6fc44997122b532cb9406497cb (patch) | |
tree | 715e347a616cd713117ab00e7b2d80f68344946f /gcc/gimple-range.cc | |
parent | 3cba5cd6e019182dbff756f621af048d55cdda98 (diff) | |
download | gcc-24c473a14d3cbe6fc44997122b532cb9406497cb.zip gcc-24c473a14d3cbe6fc44997122b532cb9406497cb.tar.gz gcc-24c473a14d3cbe6fc44997122b532cb9406497cb.tar.bz2 |
Adjust range_op_handler to store the handler directly.
Range_op_handler currently stores a tree code and a type. It defers
checking to see if there is a valid handler until asked.
This change checks at constuctor time and store a pointer to
the handler if there is one.
* range-op.cc (range_op_handler::set_op_handler): Set new fields.
(ange_op_handler::range_op_handler): Likewise.
(range_op_handler::operator bool): Remove.
(range_op_handler::fold_range): Use appropriate handler.
(range_op_handler::op1_range): Likewise.
(range_op_handler::op2_range): Likewise.
(range_op_handler::lhs_op1_relation): Likewise.
(range_op_handler::lhs_op2_relation): Likewise.
(range_op_handler::op1_op2_relation): Likewise.
* range-op.h (class range_op_handler): Store handler pointers.
(range_op_handler:: operator bool): Inline.
Diffstat (limited to 'gcc/gimple-range.cc')
0 files changed, 0 insertions, 0 deletions