17 this->link_to_cursors(&instruction);
23 for (
Variable *variable : variables) {
31 this->link_to_cursors(&instruction);
39 this->link_to_cursors(&instruction);
57 for (
const int param_index :
fn.param_indices()) {
58 const ParamType param_type =
fn.param_type(param_index);
64 input_and_mutable_variables = input_and_mutable_variables.
drop_front(1);
69 fn.param_name(param_index));
71 output_variables.
append(&variable);
78 return output_variables;
85 this->link_to_cursors(&instruction);
89 Branch branch{*procedure_, *procedure_};
99 this->link_to_cursors(&loop_begin);
103 loop.
begin = &loop_begin;
104 loop.
end = &loop_end;
111 this->link_to_cursors(loop.
begin);
118 this->link_to_cursors(loop.
end);
constexpr Span drop_front(int64_t n) const
constexpr const T & first() const
constexpr bool is_empty() const
void append(const T &value)
void set_condition(Variable *variable)
void set_param_variable(int param_index, Variable *variable)
void set_params(Span< Variable * > variables)
void set_variable(Variable *variable)
const DataType & data_type() const
InterfaceType interface_type() const
void add_loop_continue(Loop &loop)
ReturnInstruction & add_return()
void add_destruct(Variable &variable)
void add_loop_break(Loop &loop)
void set_cursor(const InstructionCursor &cursor)
Vector< Variable * > add_call(const MultiFunction &fn, Span< Variable * > input_and_mutable_variables={})
Branch add_branch(Variable &condition)
CallInstruction & add_call_with_no_variables(const MultiFunction &fn)
CallInstruction & add_call_with_all_variables(const MultiFunction &fn, Span< Variable * > param_variables)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
ProcedureBuilder branch_false
ProcedureBuilder branch_true