GCC Middle and Back End API Reference
slp_oprnds Struct Reference

Public Member Functions

 slp_oprnds (stmt_vec_info)
tree get_op_for_slp_child (stmt_vec_info, unsigned)

Data Fields

const int * opmap
const unsigned int num_slp_children

Detailed Description

Helper class for mapping of GIMPLE operands to SLP children.   
???  Add vect_slp_child_index_for_operand here and amend opmaps
with the full reverse mapping and indicating the position of the
first commutative operand index, eliding the swap_p argument from
vect_get_operand_map.  Adjust all consumers.   

Constructor & Destructor Documentation

◆ slp_oprnds()

slp_oprnds::slp_oprnds ( stmt_vec_info stmt_info)

Member Function Documentation

◆ get_op_for_slp_child()

tree slp_oprnds::get_op_for_slp_child ( stmt_vec_info stmt_info,
unsigned n )
For SLP child number N get the corresponding tree operand from GIMPLE
statement described by STMT_INFO.   

References GATHER_SCATTER_OFFSET, gcc_assert, gcc_unreachable, gimple_arg(), num_slp_children, opmap, and TREE_OPERAND.

Referenced by vect_bb_slp_mark_stmts_vectorized(), and vect_bb_slp_scalar_cost().

Field Documentation

◆ num_slp_children

const unsigned int slp_oprnds::num_slp_children

◆ opmap

const int* slp_oprnds::opmap

Referenced by get_op_for_slp_child(), and slp_oprnds().


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