dex++ 0.3.1
C++ and C API reference
Loading...
Searching...
No Matches
dex::BasicBlock Struct Reference

A maximal sequence of instructions with a single entry and a single normal exit. More...

#include <analysis/cfg.hpp>

Public Attributes

uint32_t index
 Position of this block in Cfg::blocks().
 
uint32_t start_offset
 Code-unit offset of the first instruction.
 
uint32_t end_offset
 Code-unit offset one past the last instruction.
 
uint32_t first_insn
 Index into the method's decoded instruction span.
 
uint32_t insn_count
 Number of instructions covered by this block.
 
std::vector< CfgEdge > successors
 
std::vector< uint32_t > predecessors
 Block indices only.
 
bool is_handler_entry
 True iff at least one Exception or ExceptionCatchAll edge targets this block.
 

Detailed Description

A maximal sequence of instructions with a single entry and a single normal exit.

Member Data Documentation

◆ index

uint32_t dex::BasicBlock::index

Position of this block in Cfg::blocks().

◆ start_offset

uint32_t dex::BasicBlock::start_offset

Code-unit offset of the first instruction.

◆ end_offset

uint32_t dex::BasicBlock::end_offset

Code-unit offset one past the last instruction.

◆ first_insn

uint32_t dex::BasicBlock::first_insn

Index into the method's decoded instruction span.

◆ insn_count

uint32_t dex::BasicBlock::insn_count

Number of instructions covered by this block.

◆ successors

std::vector<CfgEdge> dex::BasicBlock::successors

◆ predecessors

std::vector<uint32_t> dex::BasicBlock::predecessors

Block indices only.

◆ is_handler_entry

bool dex::BasicBlock::is_handler_entry

True iff at least one Exception or ExceptionCatchAll edge targets this block.


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