llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Public Attributes | List of all members
DAGBlock Struct Reference

#include <core/dag.h>

Public Member Functions

bool Exits () const
 Checks whether the node exits.
 
bool IsExit () const
 Checks whether the node is an exit.
 
 DAGBlock (unsigned index)
 Creates a DAG block.
 

Public Attributes

const unsigned Index
 Index of the DAG block (higher is closer to entry).
 
llvm::DenseSet< Block * > Blocks
 Blocks which are part of the collapsed node.
 
llvm::SmallVector< DAGBlock *, 4 > Succs
 Set of successor nodes.
 
llvm::SmallVector< DAGBlock *, 4 > Preds
 Set of predecessor nodes.
 
int64_t Length
 Length of the longest path to an exit.
 
bool IsLoop
 Flag indicating whether this is a loop to be over-approximated.
 
bool Lands
 Flag to indicate whether the node has landing pads.
 
bool Returns
 Flag to indicate whether the node is on a path to return.
 
bool IsReturn
 Flag to indicate whether the node is a return.
 
bool Raises
 Flag to indicate whether the node raises.
 
bool IsRaise
 Flag to indicate whether the node is a raise.
 
bool Traps
 Node leads to a trap.
 
bool IsTrap
 Node traps.
 

Detailed Description

A node in the SCC graph of a function.


The documentation for this struct was generated from the following file: