MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
gen.cpp File Reference
#include "mim/plug/mach/gen.h"
#include <cctype>
#include <print>
#include <ranges>
#include <span>
#include <fe/hash.h>
#include <mim/driver.h>
#include <mim/plugin.h>
#include <mim/rewrite.h>
#include <mim/rule.h>
#include <mim/world.h>
#include <mim/plug/core/core.h>
#include <mim/plug/math/math.h>
#include <mim/plug/refly/refly.h>
#include "mim/plug/mach/mach.h"
Include dependency graph for gen.cpp:

Go to the source code of this file.

Namespaces

namespace  mim
namespace  mim::plug
namespace  mim::plug::mach
 The mach Plugin

Macros

#define X(t)
#define X(w)

Enumerations

enum class  mim::plug::mach::Ref
 How the lhs refers to one of its inner nodes. More...
enum class  mim::plug::mach::Ty
 The non-terminal a rule yields by the type of its rhs: a register of either class, an address without/with an index, [I64, I2], or a register that holds its value zero-extended. More...
enum class  mim::plug::mach::Want
 What a rule wants of the term a meta variable matches; a Param is bound but no operand. More...

Functions

void mim::plug::mach::mim_mach_gen (Gen &)
 Gen::start, compiled once into libmim_mach; Gen reaches it via GET_FUN_PTR.

Macro Definition Documentation

◆ X [1/2]

#define X ( t)
Value:
case Ty::t: return #t;

◆ X [2/2]

#define X ( w)
Value:
case Want::w: return #w;