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)
 
unsigned num () const
 
tree name (unsigned index) const
 
const vrangerange (unsigned index) const
 
void add_range (tree name, vrange &range)
 
void add_nonzero (tree name)
 

Private Member Functions

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
 

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()

Member Function Documentation

◆ add_nonzero()

void gimple_infer_range::add_nonzero ( tree name)

◆ add_range()

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

◆ bump_index()

void gimple_infer_range::bump_index ( )
inlineprivate

References num_args, and size_limit.

◆ check_assume_func()

◆ name()

tree gimple_infer_range::name ( unsigned index) const
inline

References gcc_checking_assert, m_names, and num_args.

Referenced by add_nonzero(), and add_range().

◆ num()

unsigned gimple_infer_range::num ( ) const
inline

References num_args.

◆ range()

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

References gcc_checking_assert, m_ranges, and num_args.

Referenced by add_range().

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: