GCC Middle and Back End API Reference
_bb_vec_info Class Reference

#include <tree-vectorizer.h>

Inheritance diagram for _bb_vec_info:
Collaboration diagram for _bb_vec_info:

Public Types

enum  vec_kind { bb , loop }
 
typedef hash_set< int_hash< machine_mode, E_VOIDmode, E_BLKmode > > mode_set
 

Public Member Functions

 _bb_vec_info (vec< basic_block > bbs, vec_info_shared *)
 
 ~_bb_vec_info ()
 
stmt_vec_info add_stmt (gimple *)
 
stmt_vec_info add_pattern_stmt (gimple *, stmt_vec_info)
 
stmt_vec_info lookup_stmt (gimple *)
 
stmt_vec_info lookup_def (tree)
 
stmt_vec_info lookup_single_use (tree)
 
class dr_vec_infolookup_dr (data_reference *)
 
void move_dr (stmt_vec_info, stmt_vec_info)
 
void remove_stmt (stmt_vec_info)
 
void replace_stmt (gimple_stmt_iterator *, stmt_vec_info, gimple *)
 
void insert_on_entry (stmt_vec_info, gimple *)
 
void insert_seq_on_entry (stmt_vec_info, gimple_seq)
 

Data Fields

vec< basic_blockbbs
 
vec< slp_rootroots
 
vec_kind kind
 
vec_info_sharedshared
 
vec< stmt_vec_infostmt_vec_infos
 
bool stmt_vec_info_ro
 
bool any_known_not_updated_vssa
 
auto_vec< slp_instanceslp_instances
 
vec_base_alignments base_alignments
 
auto_vec< stmt_vec_infogrouped_stores
 
mode_set used_vector_modes
 
machine_mode vector_mode
 

Private Member Functions

stmt_vec_info new_stmt_vec_info (gimple *stmt)
 
void set_vinfo_for_stmt (gimple *, stmt_vec_info, bool=true)
 
void free_stmt_vec_infos ()
 
void free_stmt_vec_info (stmt_vec_info)
 

Member Typedef Documentation

◆ mode_set

Member Enumeration Documentation

◆ vec_kind

Enumerator
bb 
loop 

Constructor & Destructor Documentation

◆ _bb_vec_info()

_bb_vec_info::_bb_vec_info ( vec< basic_block > _bbs,
vec_info_shared * shared )
Initialize a bb_vec_info struct for the statements in BBS basic blocks.   

References vec_info::add_stmt(), bbs, gimple_set_uid(), gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_start_phis(), gsi_stmt(), i, is_gimple_debug(), and si.

◆ ~_bb_vec_info()

_bb_vec_info::~_bb_vec_info ( )
Free BB_VINFO struct, as well as all the stmt_vec_info structs of all the
stmts in the basic block.   

References bbs, gimple_set_uid(), gsi_end_p(), gsi_next(), gsi_start_bb(), gsi_start_phis(), gsi_stmt(), i, roots, and si.

Member Function Documentation

◆ add_pattern_stmt()

stmt_vec_info vec_info::add_pattern_stmt ( gimple * stmt,
stmt_vec_info stmt_info )
inherited
Record that STMT belongs to the vectorizable region.  Create a new
stmt_vec_info and mark VECINFO as being related and return the new
stmt_vec_info.   

References vec_info::new_stmt_vec_info(), vec_info::set_vinfo_for_stmt(), and STMT_VINFO_RELATED_STMT.

Referenced by addsub_pattern::build(), and complex_pattern::build().

◆ add_stmt()

◆ free_stmt_vec_info()

void vec_info::free_stmt_vec_info ( stmt_vec_info stmt_info)
privateinherited

◆ free_stmt_vec_infos()

void vec_info::free_stmt_vec_infos ( void )
privateinherited
Free the contents of stmt_vec_infos.   

References vec_info::free_stmt_vec_info(), NULL, and vec_info::stmt_vec_infos.

Referenced by vec_info::~vec_info().

◆ insert_on_entry()

void vec_info::insert_on_entry ( stmt_vec_info context,
gimple * new_stmt )
inherited
Like insert_seq_on_entry but just inserts the single stmt NEW_STMT.   

References ggc_alloc(), gsi_insert_before_without_update(), GSI_SAME_STMT, gsi_start(), vec_info::insert_seq_on_entry(), and NULL.

Referenced by vect_init_vector_1().

◆ insert_seq_on_entry()

void vec_info::insert_seq_on_entry ( stmt_vec_info context,
gimple_seq seq )
inherited
Insert stmts in SEQ on the VEC_INFO region entry.  If CONTEXT is
not NULL it specifies whether to use the sub-region entry
determined by it, currently used for loop vectorization to insert
on the inner loop entry vs. the outer loop entry.   

References gcc_assert, ggc_alloc(), gsi_after_labels(), gsi_insert_seq_before(), gsi_insert_seq_on_edge_immediate(), GSI_SAME_STMT, loop::inner, loop_preheader_edge(), LOOP_VINFO_LOOP, and nested_in_vect_loop_p().

Referenced by vec_info::insert_on_entry(), and vect_create_constant_vectors().

◆ lookup_def()

◆ lookup_dr()

◆ lookup_single_use()

stmt_vec_info vec_info::lookup_single_use ( tree lhs)
inherited
See whether there is a single non-debug statement that uses LHS and
whether that statement has an associated stmt_vec_info.  Return the
stmt_vec_info if so, otherwise return null.   

References ggc_alloc(), vec_info::lookup_stmt(), NULL, and single_imm_use().

◆ lookup_stmt()

stmt_vec_info vec_info::lookup_stmt ( gimple * stmt)
inherited

◆ move_dr()

void vec_info::move_dr ( stmt_vec_info new_stmt_info,
stmt_vec_info old_stmt_info )
inherited

◆ new_stmt_vec_info()

◆ remove_stmt()

void vec_info::remove_stmt ( stmt_vec_info stmt_info)
inherited

◆ replace_stmt()

void vec_info::replace_stmt ( gimple_stmt_iterator * gsi,
stmt_vec_info stmt_info,
gimple * new_stmt )
inherited
Replace the statement at GSI by NEW_STMT, both the vectorization
information and the function itself.  STMT_INFO describes the statement
at GSI.   

References gcc_assert, ggc_alloc(), gimple_set_uid(), gimple_uid(), gsi_replace(), and gsi_stmt().

Referenced by vect_remove_slp_scalar_calls(), vectorizable_call(), and vectorizable_simd_clone_call().

◆ set_vinfo_for_stmt()

void vec_info::set_vinfo_for_stmt ( gimple * stmt,
stmt_vec_info info,
bool check_ro = true )
privateinherited

Field Documentation

◆ any_known_not_updated_vssa

bool vec_info::any_known_not_updated_vssa
inherited

◆ base_alignments

vec_base_alignments vec_info::base_alignments
inherited

◆ bbs

vec<basic_block> _bb_vec_info::bbs

Referenced by _bb_vec_info(), and ~_bb_vec_info().

◆ grouped_stores

auto_vec<stmt_vec_info> vec_info::grouped_stores
inherited

◆ kind

vec_kind vec_info::kind
inherited

Referenced by is_a_helper< T >::test().

◆ roots

vec<slp_root> _bb_vec_info::roots

Referenced by ~_bb_vec_info().

◆ shared

◆ slp_instances

◆ stmt_vec_info_ro

bool vec_info::stmt_vec_info_ro
inherited

◆ stmt_vec_infos

◆ used_vector_modes

mode_set vec_info::used_vector_modes
inherited

◆ vector_mode


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