clang API Documentation

Public Member Functions
clang::CFGBlock::AdjacentBlock Class Reference

#include <CFG.h>

List of all members.

Public Member Functions

 AdjacentBlock (CFGBlock *B, bool IsReachable)
 Construct an AdjacentBlock with a possibly unreachable block.
 AdjacentBlock (CFGBlock *B, CFGBlock *AlternateBlock)
CFGBlockgetReachableBlock () const
 Get the reachable block, if one exists.
CFGBlockgetPossiblyUnreachableBlock () const
 Get the potentially unreachable block.
 operator CFGBlock * () const
CFGBlockoperator* () const
CFGBlockoperator-> () const
bool isReachable () const

Detailed Description

This class represents a potential adjacent block in the CFG. It encodes whether or not the block is actually reachable, or can be proved to be trivially unreachable. For some cases it allows one to encode scenarios where a block was substituted because the original (now alternate) block is unreachable.

Definition at line 422 of file CFG.h.


Constructor & Destructor Documentation

Construct an AdjacentBlock with a possibly unreachable block.

Definition at line 3838 of file CFG.cpp.

CFGBlock::AdjacentBlock::AdjacentBlock ( CFGBlock B,
CFGBlock AlternateBlock 
)

Construct an AdjacentBlock with a reachable block and an alternate unreachable block.

Definition at line 3843 of file CFG.cpp.


Member Function Documentation

Get the potentially unreachable block.

Definition at line 446 of file CFG.h.

Referenced by clang::CFGBlock::addSuccessor().

Get the reachable block, if one exists.

Definition at line 441 of file CFG.h.

Referenced by clang::CFGBlock::addSuccessor(), operator CFGBlock *(), operator*(), and operator->().

Definition at line 464 of file CFG.h.

Referenced by clang::CFGBlock::addSuccessor().

clang::CFGBlock::AdjacentBlock::operator CFGBlock * ( ) const [inline]

Provide an implicit conversion to CFGBlock* so that AdjacentBlock can be substituted for CFGBlock*.

Definition at line 452 of file CFG.h.

References getReachableBlock().

CFGBlock& clang::CFGBlock::AdjacentBlock::operator* ( ) const [inline]

Definition at line 456 of file CFG.h.

References getReachableBlock().

CFGBlock* clang::CFGBlock::AdjacentBlock::operator-> ( ) const [inline]

Definition at line 460 of file CFG.h.

References getReachableBlock().


The documentation for this class was generated from the following files: