LCOV - code coverage report
Current view: top level - gcc - symtab-clones.h (source / functions) Coverage Total Hit
Test: gcc.info Lines: 100.0 % 11 11
Test Date: 2026-02-28 14:20:25 Functions: 100.0 % 2 2
Legend: Lines:     hit not hit

            Line data    Source code
       1              : /* Representation of adjustment made to virtual clones in the symbol table.
       2              :    Copyright (C) 2003-2026 Free Software Foundation, Inc.
       3              :    Contributed by Jan Hubicka
       4              : 
       5              : This file is part of GCC.
       6              : 
       7              : GCC is free software; you can redistribute it and/or modify it under
       8              : the terms of the GNU General Public License as published by the Free
       9              : Software Foundation; either version 3, or (at your option) any later
      10              : version.
      11              : 
      12              : GCC is distributed in the hope that it will be useful, but WITHOUT ANY
      13              : WARRANTY; without even the implied warranty of MERCHANTABILITY or
      14              : FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
      15              : for more details.
      16              : 
      17              : You should have received a copy of the GNU General Public License
      18              : along with GCC; see the file COPYING3.  If not see
      19              : <http://www.gnu.org/licenses/>.  */
      20              : 
      21              : #ifndef GCC_SYMTAB_CLONES_H
      22              : #define GCC_SYMTAB_CLONES_H
      23              : 
      24              : struct GTY(()) clone_info
      25              : {
      26              :   /* Constructor.  */
      27    112736643 :   clone_info ()
      28    112736643 :     : tree_map (NULL),
      29    112736643 :       param_adjustments (NULL)
      30              :   {
      31              :   }
      32              :   /* Constants discovered by IPA-CP, i.e. which parameter should be replaced
      33              :      with what.  */
      34              :   vec<ipa_replace_map *, va_gc> *tree_map;
      35              :   /* Parameter modification that IPA-SRA decided to perform.  */
      36              :   ipa_param_adjustments *param_adjustments;
      37              : 
      38              :   /* Return clone_info, if available.  */
      39              :   static clone_info *get (cgraph_node *node);
      40              : 
      41              :   /* Return clone_info possibly creating new one.  */
      42              :   static clone_info *get_create (cgraph_node *node);
      43              : 
      44              :   /* Remove clone_info.  */
      45              :   static void remove (cgraph_node *node);
      46              : 
      47              :   /* Release all clone_infos.  */
      48              :   static void release (void);
      49              : };
      50              : 
      51              : /* Return clone_info, if available.  */
      52              : inline clone_info *
      53    124227489 : clone_info::get (cgraph_node *node)
      54              : {
      55    124227489 :   if (!symtab->m_clones)
      56              :     return NULL;
      57      6504833 :   return symtab->m_clones->get (node);
      58              : }
      59              : 
      60              : 
      61              : /* Remove clone_info association for NODE.  */
      62              : inline void
      63              : clone_info::remove (cgraph_node *node)
      64              : {
      65              :   symtab->m_clones->remove (node);
      66              : }
      67              : 
      68              : /* Free clone info summaries.  */
      69              : inline void
      70       256621 : clone_info::release ()
      71              : {
      72       256621 :   if (symtab->m_clones)
      73        19902 :     ggc_delete (symtab->m_clones);
      74       256621 :   symtab->m_clones = NULL;
      75       256621 : }
      76              : 
      77              : #endif  /* GCC_SYMTAB_CLONES_H  */
        

Generated by: LCOV version 2.4-beta

LCOV profile is generated on x86_64 machine using following configure options: configure --disable-bootstrap --enable-coverage=opt --enable-languages=c,c++,fortran,go,jit,lto,rust,m2 --enable-host-shared. GCC test suite is run with the built compiler.