sail::Function Class Reference
Representation of a function in the low-level language. Most of the work of translating the high-level language to the low-level language is done here.
More...
#include <Function.h>
List of all members.
Detailed Description
Representation of a function in the low-level language. Most of the work of translating the high-level language to the low-level language is done here.
Member Function Documentation
- Returns:
- instructions forming the body of this function
Cfg * sail::Function::get_cfg |
( |
|
) |
|
- Returns:
- Control flow graph of this function.
- Returns:
- The class in which this method is declared if this is a method, otherwise NULL.
BasicBlock * sail::Function::get_entry_block |
( |
|
) |
[virtual] |
BasicBlock * sail::Function::get_exception_block |
( |
|
) |
[virtual] |
- Returns:
- exception block of this function (see Cfg for what this means)
Implements sail::SummaryUnit.
BasicBlock * sail::Function::get_exit_block |
( |
|
) |
[virtual] |
int sail::Function::get_first_line |
( |
|
) |
|
- Returns:
- The first line this function is defined on.
Identifier sail::Function::get_identifier |
( |
|
) |
[virtual] |
void sail::Function::get_instructions |
( |
vector< Instruction * > & |
instructions |
) |
|
Fills the passed in instructions vector with the instructions forming the body of this function.
- Parameters:
-
- Returns:
- namespace in which the function is declared
- Returns:
- the representation of this function in the high-level language. Important: This function can return NULL for made-up functions that are used to initialize globals in a given file!
il::type * sail::Function::get_return_type |
( |
|
) |
|
Gives the return type of this function
bool sail::Function::is_abstract_virtual_method |
( |
|
) |
|
- Returns:
- Is this an abstract virtual method?
bool sail::Function::is_constructor |
( |
|
) |
|
- Returns:
- Is this a constructor?
bool sail::Function::is_destructor |
( |
|
) |
|
- Returns:
- Is this a destructor?
bool sail::Function::is_function |
( |
|
) |
[virtual] |
bool sail::Function::is_init_function |
( |
|
) |
|
Is this function introduced to initialize globals?
bool sail::Function::is_method |
( |
|
) |
|
- Returns:
- Is this a member function of some class?
bool sail::Function::is_superblock |
( |
|
) |
[virtual] |
bool sail::Function::is_virtual_method |
( |
|
) |
|
- Returns:
- Is this a virtual method?
The documentation for this class was generated from the following files: