17#ifndef __DIALECT_IR_NODEMIXINS_H__
18#define __DIALECT_IR_NODEMIXINS_H__
35 for (uint32_t n = 0; n < N; ++n)
37 _args[n] = std::unique_ptr<loco::Use>(
new loco::Use{
this});
44 unsigned arity(
void)
const final {
return N; }
50 for (uint32_t n = 0; n < N; ++n)
52 _args.at(n)->node(
nullptr);
61 std::array<std::unique_ptr<loco::Use>, N> _args{};
Logical unit of computation.
The edge between a node definition and its user.
Nodes with the fixed number of inputs.
virtual ~FixedArityNode()=default
loco::Node * arg(uint32_t n) const final
unsigned arity(void) const final
loco::Use * at(unsigned n) const