GCC Middle and Back End API Reference
gimple_infer_range Class Reference

#include <gimple-range-infer.h>

Collaboration diagram for gimple_infer_range:

Public Member Functions

 gimple_infer_range (gimple *s, bool use_rangeops=false)
 
 gimple_infer_range (tree name, vrange &r)
 
unsigned num () const
 
tree name (unsigned index) const
 
const vrangerange (unsigned index) const
 

Private Member Functions

void add_range (tree name, vrange &range)
 
void add_nonzero (tree name)
 
void check_assume_func (gcall *call)
 
void bump_index ()
 

Private Attributes

unsigned num_args
 
tree m_names [size_limit]
 
value_range m_ranges [size_limit]
 

Static Private Attributes

static const int size_limit = 10
 

Friends

class non_null_wrapper
 

Detailed Description

Header file for gimple range inference.
   Copyright (C) 2022-2024 Free Software Foundation, Inc.
   Contributed by Andrew MacLeod <amacleod@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

◆ gimple_infer_range() [1/2]

◆ gimple_infer_range() [2/2]

gimple_infer_range::gimple_infer_range ( tree name,
vrange & r )

References add_range(), name(), num_args, and r.

Member Function Documentation

◆ add_nonzero()

void gimple_infer_range::add_nonzero ( tree name)
private

◆ add_range()

void gimple_infer_range::add_range ( tree name,
vrange & range )
private

◆ bump_index()

void gimple_infer_range::bump_index ( )
inlineprivate

References num_args, and size_limit.

◆ check_assume_func()

◆ name()

◆ num()

unsigned gimple_infer_range::num ( ) const
inline

◆ range()

const vrange & gimple_infer_range::range ( unsigned index) const
inline

Friends And Related Symbol Documentation

◆ non_null_wrapper

friend class non_null_wrapper
friend

Field Documentation

◆ m_names

tree gimple_infer_range::m_names[size_limit]
private

Referenced by add_range(), and name().

◆ m_ranges

value_range gimple_infer_range::m_ranges[size_limit]
private

Referenced by add_range(), and range().

◆ num_args

unsigned gimple_infer_range::num_args
private

◆ size_limit

const int gimple_infer_range::size_limit = 10
staticprivate

Referenced by add_range(), and bump_index().


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