<commit_before>/* Copyright (C) 2002 by Universitaet Karlsruhe
* All rights reserved.
*
* Authors: <NAME>
*
* irdom.h:  This file contains routines to construct and access dominator
*   information.
*   The dominator information is stored in three fields of block nodes:
*     idom: a reference to the block that is the immediate dominator of
*       this block.
*     dom_depth: a number giving the depth of the block in the dominator
*       tree.
*     pre_num:  Number in preorder traversal.
*/

/* $Id$ */

# ifndef _IRDOM_H_
# define _IRDOM_H_

# include "irgraph.h"
# include "irnode.h"


/**********************************************************************/
/** Accessing the dopminator datastructure.                          **/
/** These routines only work properly if the ir_graph is in state    **/
/** dom_consistent or dom_inconsistent.                              **/
/**********************************************************************/

ir_node *get_Block_idom(ir_node *bl);
void set_Block_idom(ir_node *bl, ir_node *n);

int get_Block_dom_depth(ir_node *bl);
void set_Block_dom_depth(ir_node *bl, int depth);

int get_Block_pre_num(ir_node *bl);
void set_Block_pre_num(ir_node *bl, int num);


/**********************************************************************/
/* Building and Removing the dominator datasturcture                 **/
/**********************************************************************/

/* Computes the dominator trees.  Sets a flag in irg to "dom_consistent".
   If the control flow of the graph is changed this flag must be set to
   "dom_inconsistent".
   Does not compute dominator information for control dead code.  Blocks
   not reachable from Start contain the following information:
     idom = NULL;
     dom_depth = -1;
     pre_num = -1; */
void compute_doms(ir_graph *irg);

/* Frees the dominator datastructures.  Sets the flag in irg to "no_dom". */
void free_dom_and_peace(ir_graph *irg);

#endif /* _IRDOM_H_ */<commit_msg>comments converted to doxygen<commit_after>/* Copyright (C) 2002 by Universitaet Karlsruhe
* All rights reserved.
*
*/

/**
* @file irdom.h
*
*   This file contains routines to construct and access dominator information.
*
*   The dominator information is stored in three fields of block nodes:
*     - idom: a reference to the block that is the immediate dominator of
*       this block.
*     - dom_depth: a number giving the depth of the block in the dominator
*       tree.
*     - pre_num:  Number in preorder traversal.
*
* @author <NAME>
*/

/* $Id$ */

# ifndef _IRDOM_H_
# define _IRDOM_H_

# include "irgraph.h"
# include "irnode.h"


/* Accessing the dominator datastructure.
 *
 * These routines only work properly if the ir_graph is in state
 * dom_consistent or dom_inconsistent.
 */
ir_node *get_Block_idom(ir_node *bl);
void set_Block_idom(ir_node *bl, ir_node *n);

int get_Block_dom_depth(ir_node *bl);
void set_Block_dom_depth(ir_node *bl, int depth);

int get_Block_pre_num(ir_node *bl);
void set_Block_pre_num(ir_node *bl, int num);


/* ------------ Building and Removing the dominator datasturcture ----------- */

/** Computes the dominator trees.
 *
 * Sets a flag in irg to "dom_consistent".
 * If the control flow of the graph is changed this flag must be set to
 * "dom_inconsistent".
 * Does not compute dominator information for control dead code.  Blocks
 * not reachable from Start contain the following information:
 *   idom = NULL;
 *   dom_depth = -1;
 *   pre_num = -1;
 */
void compute_doms(ir_graph *irg);

/** Frees the dominator datastructures.  Sets the flag in irg to "no_dom". */
void free_dom_and_peace(ir_graph *irg);

#endif /* _IRDOM_H_ */
{'fraction_non_alphanumeric': 0.16684782608695653, 'fraction_numerical': 0.003260869565217391, 'mean_word_length': 3.6243718592964824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3252925', 'n_tokens_mistral': 1153, 'n_tokens_neox': 1112, 'n_words': 390}