GCC Middle and Back End API Reference
code_helper Class Reference

#include <tree.h>

Public Member Functions

 code_helper ()
 
 code_helper (tree_code code)
 
 code_helper (combined_fn fn)
 
 code_helper (internal_fn fn)
 
 operator tree_code () const
 
 operator combined_fn () const
 
 operator internal_fn () const
 
 operator built_in_function () const
 
bool is_tree_code () const
 
bool is_fn_code () const
 
bool is_internal_fn () const
 
bool is_builtin_fn () const
 
int get_rep () const
 
tree_code safe_as_tree_code () const
 
combined_fn safe_as_fn_code () const
 
bool operator== (const code_helper &other)
 
bool operator!= (const code_helper &other)
 
bool operator== (tree_code c)
 
bool operator!= (tree_code c)
 

Private Attributes

int rep
 

Detailed Description

Helper to transparently allow tree codes and builtin function codes
exist in one storage entity.   

Constructor & Destructor Documentation

◆ code_helper() [1/4]

code_helper::code_helper ( )
inline

Referenced by operator!=(), and operator==().

◆ code_helper() [2/4]

code_helper::code_helper ( tree_code code)
inline

◆ code_helper() [3/4]

code_helper::code_helper ( combined_fn fn)
inline

◆ code_helper() [4/4]

code_helper::code_helper ( internal_fn fn)
inline

Member Function Documentation

◆ get_rep()

int code_helper::get_rep ( ) const
inline

References rep.

◆ is_builtin_fn()

bool code_helper::is_builtin_fn ( ) const
inline

References builtin_fn_p(), and is_fn_code().

◆ is_fn_code()

bool code_helper::is_fn_code ( ) const
inline

◆ is_internal_fn()

bool code_helper::is_internal_fn ( ) const
inline

◆ is_tree_code()

◆ operator built_in_function()

code_helper::operator built_in_function ( ) const
inlineexplicit

References as_builtin_fn().

◆ operator combined_fn()

code_helper::operator combined_fn ( ) const
inlineexplicit

References rep.

◆ operator internal_fn()

code_helper::operator internal_fn ( ) const
inlineexplicit

References as_internal_fn().

◆ operator tree_code()

code_helper::operator tree_code ( ) const
inlineexplicit

References rep.

◆ operator!=() [1/2]

bool code_helper::operator!= ( const code_helper & other)
inline

References rep.

◆ operator!=() [2/2]

bool code_helper::operator!= ( tree_code c)
inline

References code_helper(), and rep.

◆ operator==() [1/2]

bool code_helper::operator== ( const code_helper & other)
inline

References rep.

◆ operator==() [2/2]

bool code_helper::operator== ( tree_code c)
inline

References code_helper(), and rep.

◆ safe_as_fn_code()

combined_fn code_helper::safe_as_fn_code ( ) const
inline
Helper function that returns the combined_fn representation of THIS
code_helper if it is a fn_code and CFN_LAST otherwise.  This is useful when
passing a code_helper to a combined_fn only check.   

References CFN_LAST, and is_fn_code().

◆ safe_as_tree_code()

tree_code code_helper::safe_as_tree_code ( ) const
inline
Helper function that returns the tree_code representation of THIS
code_helper if it is a tree_code and MAX_TREE_CODES otherwise.  This is
useful when passing a code_helper to a tree_code only check.   

References is_tree_code(), and MAX_TREE_CODES.

Referenced by supportable_widening_operation().

Field Documentation

◆ rep


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