GCC Middle and Back End API Reference
tree_switch_conversion Namespace Reference

Data Structures

class  bit_test_cluster
 
class  case_bit_test
 
class  case_tree_node
 
class  cluster
 
class  group_cluster
 
class  jump_table_cluster
 
class  min_cluster_item
 
class  simple_cluster
 
class  switch_conversion
 
class  switch_decision_tree
 

Enumerations

enum  cluster_type { SIMPLE_CASE , JUMP_TABLE , BIT_TEST }
 

Functions

void release_clusters (vec< cluster * > &clusters)
 

Detailed Description

Tree switch conversion for GNU compiler.
   Copyright (C) 2017-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/>.   

Enumeration Type Documentation

◆ cluster_type

Type of cluster.   
Enumerator
SIMPLE_CASE 
JUMP_TABLE 
BIT_TEST 

Function Documentation

◆ release_clusters()

void tree_switch_conversion::release_clusters ( vec< cluster * > & clusters)
inline
Release CLUSTERS vector and destruct all dynamically allocated items.   

References ggc_alloc(), and i.

Referenced by tree_switch_conversion::switch_decision_tree::analyze_switch_statement(), and if_chain::is_beneficial().