gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
BasicBlock Struct Reference

#include <kernel_cfg.hh>

Public Member Functions

 BasicBlock (uint32_t num, GPUStaticInst *begin)
 
bool isEntry () const
 
bool isExit () const
 

Public Attributes

const uint32_t id
 Unique identifier for the block within a given kernel. More...
 
size_t size
 Number of instructions contained in the block. More...
 
GPUStaticInstfirstInstruction
 Pointer to first instruction of the block. More...
 
std::set< uint32_t > successorIds
 Identifiers of the blocks that follow (are reachable from) this block. More...
 
std::set< uint32_t > postDominatorIds
 Identifiers of the blocks that will be visited from this block. More...
 

Detailed Description

Definition at line 49 of file kernel_cfg.hh.

Constructor & Destructor Documentation

BasicBlock::BasicBlock ( uint32_t  num,
GPUStaticInst begin 
)
inline

Definition at line 51 of file kernel_cfg.hh.

Member Function Documentation

bool BasicBlock::isEntry ( ) const
inline

Definition at line 57 of file kernel_cfg.hh.

References id.

bool BasicBlock::isExit ( ) const
inline

Member Data Documentation

GPUStaticInst* BasicBlock::firstInstruction

Pointer to first instruction of the block.

Definition at line 81 of file kernel_cfg.hh.

Referenced by ControlFlowInfo::basicBlock(), and ControlFlowInfo::lastInstruction().

const uint32_t BasicBlock::id

Unique identifier for the block within a given kernel.

Definition at line 71 of file kernel_cfg.hh.

Referenced by ControlFlowInfo::connectBasicBlocks(), ControlFlowInfo::findImmediatePostDominators(), isEntry(), and ControlFlowInfo::printBasicBlocks().

std::set<uint32_t> BasicBlock::postDominatorIds

Identifiers of the blocks that will be visited from this block.

Definition at line 91 of file kernel_cfg.hh.

Referenced by ControlFlowInfo::findImmediatePostDominators().

size_t BasicBlock::size

Number of instructions contained in the block.

Definition at line 76 of file kernel_cfg.hh.

Referenced by isExit(), and ControlFlowInfo::lastInstruction().

std::set<uint32_t> BasicBlock::successorIds

Identifiers of the blocks that follow (are reachable from) this block.

Definition at line 86 of file kernel_cfg.hh.


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

Generated on Fri Jun 9 2017 13:04:03 for gem5 by doxygen 1.8.6