diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2022-09-20 16:53:37 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2022-09-22 14:48:29 -0400 |
commit | b40b3035879cf695b72010858b9705a344292bdb (patch) | |
tree | 95ba68b08dc3d79bc073f63687f5d7fd13693ddf /libgcc | |
parent | 2f92f685da2ef9e82ee6262519919180df8f2dd9 (diff) | |
download | gcc-b40b3035879cf695b72010858b9705a344292bdb.zip gcc-b40b3035879cf695b72010858b9705a344292bdb.tar.gz gcc-b40b3035879cf695b72010858b9705a344292bdb.tar.bz2 |
Add range-ops support for builtin functions.
Convert CFN_BUILT_IN_CONSTANT_P as first POC.
* gimple-range-fold.cc
(fold_using_range::range_of_builtin_int_call): Remove case for
CFN_BUILT_IN_CONSTANT_P.
* gimple-range-op.cc (gimple_range_op_handler::supported_p):
Check if a call also creates a range-op object.
(gimple_range_op_handler): Also check builtin calls.
(class cfn_constant_float_p): New. Float CFN_BUILT_IN_CONSTANT_P.
(class cfn_constant_p): New. Integral CFN_BUILT_IN_CONSTANT_P.
(gimple_range_op_handler::maybe_builtin_call): Set arguments and
handler for supported built-in calls.
* gimple-range-op.h (maybe_builtin_call): New prototype.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions