xref: /netbsd-src/external/gpl3/gcc.old/dist/gcc/tree-sra.h (revision 4c3eb207d36f67d31994830c0a694161fc1ca39b)
1*4c3eb207Smrg /* Scalar Replacement of Aggregates (SRA) converts some structure
2*4c3eb207Smrg    references into scalar references, exposing them to the scalar
3*4c3eb207Smrg    optimizers.
4*4c3eb207Smrg    Copyright (C) 2019-2020 Free Software Foundation, Inc.
5*4c3eb207Smrg 
6*4c3eb207Smrg This file is part of GCC.
7*4c3eb207Smrg 
8*4c3eb207Smrg GCC is free software; you can redistribute it and/or modify it under
9*4c3eb207Smrg the terms of the GNU General Public License as published by the Free
10*4c3eb207Smrg Software Foundation; either version 3, or (at your option) any later
11*4c3eb207Smrg version.
12*4c3eb207Smrg 
13*4c3eb207Smrg GCC is distributed in the hope that it will be useful, but WITHOUT ANY
14*4c3eb207Smrg WARRANTY; without even the implied warranty of MERCHANTABILITY or
15*4c3eb207Smrg FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
16*4c3eb207Smrg for more details.
17*4c3eb207Smrg 
18*4c3eb207Smrg You should have received a copy of the GNU General Public License
19*4c3eb207Smrg along with GCC; see the file COPYING3.  If not see
20*4c3eb207Smrg <http://www.gnu.org/licenses/>.  */
21*4c3eb207Smrg 
22*4c3eb207Smrg bool type_internals_preclude_sra_p (tree type, const char **msg);
23*4c3eb207Smrg 
24*4c3eb207Smrg /* Return true iff TYPE is stdarg va_list type (which early SRA and IPA-SRA
25*4c3eb207Smrg    should leave alone).  */
26*4c3eb207Smrg 
27*4c3eb207Smrg static inline bool
is_va_list_type(tree type)28*4c3eb207Smrg is_va_list_type (tree type)
29*4c3eb207Smrg {
30*4c3eb207Smrg   return TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (va_list_type_node);
31*4c3eb207Smrg }
32