17#ifndef __LUCI_IR_VARIADICARITYNODES_H__
18#define __LUCI_IR_VARIADICARITYNODES_H__
38 for (uint32_t n = 0; n <
arity; ++n)
40 _args.push_back(std::make_unique<loco::Use>(
this));
47 uint32_t
arity(
void)
const final {
return _args.size(); }
53 for (uint32_t n = 0; n < _args.size(); ++n)
55 _args.at(n)->node(
nullptr);
64 std::vector<std::unique_ptr<loco::Use>> _args;
Logical unit of computation.
The edge between a node definition and its user.
Nodes with the variadic inputs.
loco::Node * arg(uint32_t n) const final
VariadicArityNode(uint32_t arity)
virtual ~VariadicArityNode()=default
loco::Use * at(uint32_t n) const
uint32_t arity(void) const final