GPUOcelot
Classes | Public Types | Public Member Functions

analysis::ProgramStructureGraph::Block Class Reference

#include <ProgramStructureGraph.h>

List of all members.

Classes

class  block_iterator
 An iterator over basic blocks. More...
class  const_block_iterator
 A const iterator over basic blocks. More...
class  const_iterator
 A const iterator. More...
class  const_predecessor_iterator
 A const iterator over block predecessors. More...
class  const_successor_iterator
 An iterator over block successors. More...
class  iterator
 An iterator over the instructions in the contained basic blocks. More...
class  predecessor_iterator
 An iterator over block predecessors. More...
class  successor_iterator
 An iterator over block successors. More...

Public Types

typedef ir::ControlFlowGraph CFG
typedef ir::BasicBlock BB
typedef BB::instruction_iterator instruction_iterator
typedef CFG::pointer_iterator basic_block_iterator
typedef
BB::const_instruction_iterator 
const_instruction_iterator
typedef CFG::const_pointer_iterator const_basic_block_iterator

Public Member Functions

iterator begin ()
 Get an iterator to the first instruction in the block.
iterator end ()
 Get an iterator to the end of the instruction list.
const_iterator begin () const
 Get a const iterator to the first instruction in the block.
const_iterator end () const
 Get a const iterator to the end of the instruction list.
block_iterator block_begin ()
 Get a block iterator to the first block.
block_iterator block_end ()
 Get an iterator to the end of the block list.
const_block_iterator block_begin () const
 Get a const iterator to the first block.
const_block_iterator block_end () const
 Get a const iterator to the end of the block list.
successor_iterator successors_begin ()
 Get a block iterator to the first successor.
successor_iterator successors_end ()
 Get an iterator to the end of the successor list.
const_successor_iterator successors_begin () const
 Get a const iterator to the first successor.
const_successor_iterator successors_end () const
 Get a const iterator to the end of the successor list.
predecessor_iterator predecessors_begin ()
 Get a block iterator to the first predecessor.
predecessor_iterator predecessors_end ()
 Get an iterator to the end of the predecessor list.
const_predecessor_iterator predecessors_begin () const
 Get a const iterator to the first predecessor.
const_predecessor_iterator predecessors_end () const
 Get a const iterator to the end of the predecessor list.
block_iterator insert (ir::ControlFlowGraph::iterator block, block_iterator position)
 insert a new block
block_iterator insert (ir::ControlFlowGraph::iterator block)
 insert a new block to the end
iterator insert (ir::Instruction *instruction, iterator position)
 insert a new instruction
iterator insert (ir::Instruction *instruction)
 insert a new instruction to the end of the last block
bool empty () const
 Are there any instructions in the block?
size_t instructions () const
 Get the number of instructions in the block.
size_t basicBlocks () const
 Get the number of basic blocks in the block.

Member Typedef Documentation


Member Function Documentation

size_t analysis::ProgramStructureGraph::Block::basicBlocks ( ) const

Get the number of basic blocks in the block.

ProgramStructureGraph::Block::iterator analysis::ProgramStructureGraph::Block::begin ( )

Get an iterator to the first instruction in the block.

ProgramStructureGraph::Block::const_iterator analysis::ProgramStructureGraph::Block::begin ( ) const

Get a const iterator to the first instruction in the block.

ProgramStructureGraph::Block::block_iterator analysis::ProgramStructureGraph::Block::block_begin ( )

Get a block iterator to the first block.

ProgramStructureGraph::Block::const_block_iterator analysis::ProgramStructureGraph::Block::block_begin ( ) const

Get a const iterator to the first block.

ProgramStructureGraph::Block::const_block_iterator analysis::ProgramStructureGraph::Block::block_end ( ) const

Get a const iterator to the end of the block list.

ProgramStructureGraph::Block::block_iterator analysis::ProgramStructureGraph::Block::block_end ( )

Get an iterator to the end of the block list.

bool analysis::ProgramStructureGraph::Block::empty ( ) const

Are there any instructions in the block?

ProgramStructureGraph::Block::const_iterator analysis::ProgramStructureGraph::Block::end ( ) const

Get a const iterator to the end of the instruction list.

ProgramStructureGraph::Block::iterator analysis::ProgramStructureGraph::Block::end ( )

Get an iterator to the end of the instruction list.

ProgramStructureGraph::Block::block_iterator analysis::ProgramStructureGraph::Block::insert ( ir::ControlFlowGraph::iterator  block,
block_iterator  position 
)

insert a new block

ProgramStructureGraph::Block::iterator analysis::ProgramStructureGraph::Block::insert ( ir::Instruction instruction)

insert a new instruction to the end of the last block

ProgramStructureGraph::Block::block_iterator analysis::ProgramStructureGraph::Block::insert ( ir::ControlFlowGraph::iterator  block)

insert a new block to the end

ProgramStructureGraph::Block::iterator analysis::ProgramStructureGraph::Block::insert ( ir::Instruction instruction,
iterator  position 
)

insert a new instruction

size_t analysis::ProgramStructureGraph::Block::instructions ( ) const

Get the number of instructions in the block.

ProgramStructureGraph::Block::predecessor_iterator analysis::ProgramStructureGraph::Block::predecessors_begin ( )

Get a block iterator to the first predecessor.

ProgramStructureGraph::Block::const_predecessor_iterator analysis::ProgramStructureGraph::Block::predecessors_begin ( ) const

Get a const iterator to the first predecessor.

ProgramStructureGraph::Block::predecessor_iterator analysis::ProgramStructureGraph::Block::predecessors_end ( )

Get an iterator to the end of the predecessor list.

ProgramStructureGraph::Block::const_predecessor_iterator analysis::ProgramStructureGraph::Block::predecessors_end ( ) const

Get a const iterator to the end of the predecessor list.

ProgramStructureGraph::Block::const_successor_iterator analysis::ProgramStructureGraph::Block::successors_begin ( ) const

Get a const iterator to the first successor.

ProgramStructureGraph::Block::successor_iterator analysis::ProgramStructureGraph::Block::successors_begin ( )

Get a block iterator to the first successor.

ProgramStructureGraph::Block::const_successor_iterator analysis::ProgramStructureGraph::Block::successors_end ( ) const

Get a const iterator to the end of the successor list.

ProgramStructureGraph::Block::successor_iterator analysis::ProgramStructureGraph::Block::successors_end ( )

Get an iterator to the end of the successor list.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines