GCC Middle and Back End API Reference
vrange_printer Class Reference

#include <value-range-pretty-print.h>

Inheritance diagram for vrange_printer:
Collaboration diagram for vrange_printer:

Public Member Functions

 vrange_printer (pretty_printer *pp_)
 
void visit (const unsupported_range &) const override
 
void visit (const irange &) const override
 
void visit (const prange &) const override
 
void visit (const frange &) const override
 

Private Member Functions

void print_frange_nan (const frange &) const
 
void print_real_value (tree type, const REAL_VALUE_TYPE &r) const
 

Private Attributes

pretty_printerpp
 

Detailed Description

Pretty print support for value ranges.
   Copyright (C) 2022-2024 Free Software Foundation, Inc.
   Contributed by Aldy Hernandez <aldyh@redhat.com>.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.

GCC is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   

Constructor & Destructor Documentation

◆ vrange_printer()

vrange_printer::vrange_printer ( pretty_printer * pp_)
inline

Member Function Documentation

◆ print_frange_nan()

void vrange_printer::print_frange_nan ( const frange & r) const
private

References ggc_alloc(), pp, pp_string(), and r.

Referenced by visit().

◆ print_real_value()

void vrange_printer::print_real_value ( tree type,
const REAL_VALUE_TYPE & r ) const
private

◆ visit() [1/4]

void vrange_printer::visit ( const frange & r) const
overridevirtual

◆ visit() [2/4]

void vrange_printer::visit ( const irange & r) const
overridevirtual

◆ visit() [3/4]

void vrange_printer::visit ( const prange & r) const
overridevirtual

◆ visit() [4/4]

void vrange_printer::visit ( const unsupported_range & r) const
overridevirtual

Reimplemented from vrange_visitor.

References gcc_unreachable, pp, pp_string(), and r.

Field Documentation

◆ pp

pretty_printer* vrange_printer::pp
private

The documentation for this class was generated from the following files: