GCC Middle and Back End API Reference
tree-sra.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool type_internals_preclude_sra_p (tree type, const char **msg)
 
unsigned HOST_WIDE_INT sra_get_max_scalarization_size (void)
 
bool sra_total_scalarization_would_copy_same_data_p (tree t1, tree t2)
 
bool is_va_list_type (tree type)
 

Function Documentation

◆ is_va_list_type()

bool is_va_list_type ( tree type)
inline
Return true iff TYPE is stdarg va_list type (which early SRA and IPA-SRA
should leave alone).   

References TYPE_MAIN_VARIANT, and va_list_type_node.

Referenced by maybe_add_sra_candidate().

◆ sra_get_max_scalarization_size()

unsigned HOST_WIDE_INT sra_get_max_scalarization_size ( void )
Get the total total scalarization size limit in the current function.   

References cfun, get_move_ratio(), ggc_alloc(), optimize_function_for_size_p(), and OPTION_SET_P.

Referenced by analyze_all_variable_accesses(), and ipa_icf_gimple::func_checker::safe_for_total_scalarization_p().

◆ sra_total_scalarization_would_copy_same_data_p()

bool sra_total_scalarization_would_copy_same_data_p ( tree t1,
tree t2 )
Given two types in an assignment, return true either if any one cannot be
totally scalarized or if they have padding (i.e. not copied bits)   

References check_ts_and_push_padding_to_vec(), ggc_alloc(), and i.

Referenced by ipa_icf_gimple::func_checker::safe_for_total_scalarization_p().

◆ type_internals_preclude_sra_p()

bool type_internals_preclude_sra_p ( tree type,
const char ** msg )
Scalar Replacement of Aggregates (SRA) converts some structure
   references into scalar references, exposing them to the scalar
   optimizers.
   Copyright (C) 2019-2024 Free Software Foundation, Inc.

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/>.   
Return true iff the type contains a field or an element which does not allow
scalarization.   

References ggc_alloc(), msg, and type_internals_preclude_sra_p_1().

Referenced by maybe_add_sra_candidate().