Matches a dispatch through a jump table of the form: (target_0, target_1, ...)#index arg where index is not a Literal. More...
#include <mim/tuple.h>
Public Member Functions | |
| Dispatch (const Def *) | |
| operator bool () const noexcept | |
| const App * | app () const |
| const Def * | callee () const |
| const Def * | arg () const |
| const Extract * | extract () const |
| const Def * | tuple () const |
| const Def * | index () const |
| size_t | num_targets () const |
| const Def * | target (size_t i) const |
Matches a dispatch through a jump table of the form: (target_0, target_1, ...)#index arg where index is not a Literal.
| mim::Dispatch::Dispatch | ( | const Def * | def | ) |
Definition at line 32 of file tuple.cpp.
References app(), mim::Def::arity(), mim::App::callee(), extract(), mim::Extract::index(), mim::Lit::isa(), and mim::Extract::tuple().
|
inline |
Definition at line 261 of file tuple.h.
Referenced by arg(), callee(), and Dispatch().
| const Def * mim::Dispatch::arg | ( | ) | const |
Definition at line 44 of file tuple.cpp.
References app(), and mim::App::arg().
| const Def * mim::Dispatch::callee | ( | ) | const |
Definition at line 43 of file tuple.cpp.
References app(), and mim::App::callee().
|
inline |
Definition at line 265 of file tuple.h.
Referenced by Dispatch(), index(), num_targets(), and tuple().
|
inline |
Definition at line 267 of file tuple.h.
References extract(), and mim::Extract::index().
|
inline |
Definition at line 269 of file tuple.h.
References mim::Lit::as(), extract(), and tuple().
|
inlineexplicitnoexcept |
|
inline |
Definition at line 270 of file tuple.h.
References mim::Def::proj(), and tuple().
|
inline |
Definition at line 266 of file tuple.h.
References extract(), and mim::Extract::tuple().
Referenced by num_targets(), and target().