|
Blender V4.3
|
#include <FN_multi_function_procedure.hh>
Inherits blender::fn::multi_function::Instruction.
Public Member Functions | |
| void | set_variable (Variable *variable) |
| void | set_next (Instruction *instruction) |
#DestructInstruction Inline Methods | |
| Variable * | variable () |
| const Variable * | variable () const |
| Instruction * | next () |
| const Instruction * | next () const |
Public Member Functions inherited from blender::fn::multi_function::Instruction | |
| InstructionType | type () const |
| Span< InstructionCursor > | prev () const |
Additional Inherited Members | |
Protected Attributes inherited from blender::fn::multi_function::Instruction | |
| InstructionType | type_ |
| Vector< InstructionCursor > | prev_ |
| friend | Procedure |
| friend | CallInstruction |
| friend | BranchInstruction |
| friend | DestructInstruction |
| friend | DummyInstruction |
| friend | ReturnInstruction |
A destruct instruction destructs a single variable. So the variable value will be uninitialized after this instruction. All variables that are not output variables of the procedure, have to be destructed before the procedure ends. Destructing early is generally a good thing, because it might help with memory buffer reuse, which decreases memory-usage and increases performance.
Definition at line 181 of file FN_multi_function_procedure.hh.
|
inline |
Definition at line 465 of file FN_multi_function_procedure.hh.
Referenced by blender::fn::multi_function::ProcedureExecutor::call(), and blender::fn::multi_function::procedure_optimization::move_destructs_up().
|
inline |
Definition at line 470 of file FN_multi_function_procedure.hh.
| void blender::fn::multi_function::DestructInstruction::set_next | ( | Instruction * | instruction | ) |
Definition at line 156 of file multi_function_procedure.cc.
References blender::fn::multi_function::Instruction::prev_.
Referenced by blender::fn::multi_function::procedure_optimization::move_destructs_up().
| void blender::fn::multi_function::DestructInstruction::set_variable | ( | Variable * | variable | ) |
Definition at line 145 of file multi_function_procedure.cc.
References variable().
Referenced by blender::fn::multi_function::ProcedureBuilder::add_destruct().
|
inline |
Definition at line 455 of file FN_multi_function_procedure.hh.
Referenced by blender::fn::multi_function::ProcedureExecutor::call(), blender::fn::multi_function::ProcedureDotExport::instruction_to_string(), blender::fn::multi_function::procedure_optimization::move_destructs_up(), and set_variable().
|
inline |
Definition at line 460 of file FN_multi_function_procedure.hh.