21 #ifndef OTAWA_AST_BLOCK_AST_H
22 #define OTAWA_AST_BLOCK_AST_H
27 namespace otawa {
namespace ast {
50 #endif // OTAWA_AST_BLOCK_AST_H
Inst * _block
Definition: BlockAST.h:31
virtual ast_kind_t kind(void) const
Get the kind of the AST.
Definition: BlockAST.h:43
t::uint32 _size
Definition: BlockAST.h:32
virtual BlockAST * toBlock(void)
Get the block AST if this AST is a block, null else.
Definition: BlockAST.h:44
Inst * block(void) const
Get the entry basic block of the AST block.
Definition: BlockAST.h:38
t::uint32 size(void) const
Definition: BlockAST.h:39
static Identifier< AST * > ID
The property matching the given identifier is put on the first instruction of the AST...
Definition: BlockAST.h:36
virtual int countInstructions(void) const
Count the number of instructions in the ast block.
Definition: BlockAST.cpp:88
virtual Inst * first(void)
Get the first instruction of the block.
Definition: BlockAST.h:42
BlockAST(Inst *block, t::uint32 size)
Build a new block AST.
Definition: BlockAST.cpp:46
This class represents the leafs of the AST.
Definition: BlockAST.h:30
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
This is the base class for the representation of programs as Abstract Syntax Trees.
Definition: AST.h:53
This class represents assembly instruction of a piece of code.
Definition: Inst.h:62
virtual ~BlockAST(void)
Destroy the block AST, cleaning properties put on basic block and basic block head.
Definition: BlockAST.cpp:56
ast_kind_t
Definition: AST.h:40