MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::plug::mach::Demand Struct Reference

What a match needs of the operand def: a hole of type want or, if inner is set, that inner pattern node. More...

#include <mim/plug/mach/isel.h>

Public Member Functions

bool operator== (const Demand &) const =default

Public Attributes

const Def * def
Want want = Want::Reg
size_t inner = 0

Detailed Description

What a match needs of the operand def: a hole of type want or, if inner is set, that inner pattern node.

While matching, inner is one plus the index of its Cover; analyze() turns it into the id of the inner alternative.

Definition at line 26 of file isel.h.

Member Function Documentation

◆ operator==()

bool mim::plug::mach::Demand::operator== ( const Demand & ) const
default

Member Data Documentation

◆ def

const Def* mim::plug::mach::Demand::def

Definition at line 27 of file isel.h.

◆ inner

size_t mim::plug::mach::Demand::inner = 0

Definition at line 29 of file isel.h.

◆ want

Want mim::plug::mach::Demand::want = Want::Reg

Definition at line 28 of file isel.h.


The documentation for this struct was generated from the following file:
  • include/mim/plug/mach/isel.h