Gyoji Compiler
|
Function call (invoke) operation. More...
#include <operations.hpp>
Public Member Functions | |
OperationFunctionCall (const Gyoji::context::SourceReference &_src_ref, size_t _result, size_t _callee_tmpvar, std::vector< size_t > _arg_args) | |
Create a function call operation. | |
virtual | ~OperationFunctionCall () |
Move along, nothing to see here. | |
![]() | |
Operation (OperationType _type, const Gyoji::context::SourceReference &_src_ref, size_t _result) | |
Operation (OperationType _type, const Gyoji::context::SourceReference &_src_ref, size_t _result, size_t _operand) | |
Operation (OperationType _type, const Gyoji::context::SourceReference &_src_ref, size_t _result, size_t _operand_a, size_t _operand_b) | |
Operation (OperationType _type, const Gyoji::context::SourceReference &_src_ref, size_t _result, size_t _operand_a, size_t _operand_b, size_t _operand_c) | |
virtual | ~Operation () |
Move along, nothing to see here. | |
void | dump (FILE *out) const |
OperationType | get_type () const |
Opcode of this operation. | |
const std::vector< size_t > & | get_operands () const |
Get the operands. | |
size_t | get_result () const |
Get the result of this operation. | |
bool | is_terminating () const |
Returns true if this is a terminating operation for a block. | |
const Gyoji::context::SourceReference & | get_source_ref () const |
Get the reference to the source which originated this operation. | |
virtual std::string | get_description () const |
Produce a description of the operation. | |
Function call (invoke) operation.
This subclass of Operation represents a function-call taking an operand for the function and a list of operands, one for each argument of the function.
OperationFunctionCall::OperationFunctionCall | ( | const Gyoji::context::SourceReference & | _src_ref, |
size_t | _result, | ||
size_t | _callee_tmpvar, | ||
std::vector< size_t > | _arg_args | ||
) |
Create a function call operation.
This constructor takes the function to be called (callee) and a list of other operands, one for each argument to the function.
|
virtual |
Move along, nothing to see here.
Move along, nothing to see here.