Otawa
0.10
|
This class represents functions in the AST representation. More...
#include <otawa/ast/FunAST.h>
Public Member Functions | |
FunAST (WorkSpace *ws, Inst *entry, String name="") | |
Build a new function AST. More... | |
FunAST (ASTInfo *info, Inst *entry, String name="") | |
Build a new function AST. More... | |
Inst * | entry (void) const |
Get the instruction entry of this function. More... | |
String & | name (void) |
Get the name of the function. More... | |
AST * | ast (void) const |
Get the AST representing the body of this function. More... | |
void | setAst (AST *ast) |
Modify the AST representing the body of this function. More... | |
void | setName (const String &name) |
void | lock (void) |
void | unlock () |
Private Member Functions | |
~FunAST (void) | |
Remove any link with the instruction representation. More... | |
Private Attributes | |
ASTInfo * | info |
Inst * | ent |
String | _name |
AST * | _ast |
Friends | |
class | ASTInfo |
|
private |
Remove any link with the instruction representation.
Build a new function AST.
ws | workspace containing the function. |
entry | First instruction of the function. |
name | Function name. |
References _name, otawa::ast::ASTInfo::add(), ASTInfo, ent, otawa::ast::FUN, otawa::ast::INFO, info, and otawa::LABEL.
Build a new function AST.
info | AST information. |
entry | First instruction of the function. |
name | Function name. |
References _name, otawa::ast::ASTInfo::add(), ent, otawa::ast::FUN, and otawa::LABEL.
|
inline |
Get the AST representing the body of this function.
References _ast.
Referenced by otawa::ast::ASTProcessor::processFun().
|
inline |
|
inline |
Get the name of the function.
References _name.
Referenced by otawa::ast::ASTInfo::add(), otawa::ets::ACSComputation::applyProcess(), otawa::ets::CacheFirstMissComputation::computation(), otawa::ets::CacheHitComputation::computation(), otawa::ets::CacheMissComputation::computation(), otawa::ets::WCETComputation::computation(), otawa::ets::ACSComputation::initialization(), otawa::ets::FlowFactLoader::processAST(), otawa::ets::TrivialAstBlockTime::processAST(), and setName().
void FunAST::setAst | ( | AST * | ast | ) |
|
inline |