Struct ForkIf

Struct Documentation

struct sgpl::ForkIf

If {reg[arg_0]} is nonzero, registers a request to activate a new core with the module best-matching the current instruction’s tag.

These fork requests are only handled when the current core terminates. Each core may only register 3 fork requests.

Public Static Functions

template<typename Spec>
void run(sgpl::Core<Spec> &core, const sgpl::Instruction<Spec> &inst, const sgpl::Program<Spec>&, typename Spec::peripheral_t&) noexcept
std::string name()
size_t prevalence()
template<typename Spec>
auto descriptors(const sgpl::Instruction<Spec> &inst)
template<typename Spec>
std::set<std::string> categories(const sgpl::Instruction<Spec>&)