MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
emit.h File Reference
#include <algorithm>
#include <optional>
#include <print>
#include <sstream>
#include <utility>
#include <fe/algo.h>
#include <mim/driver.h>
#include "mim/plug/mach/asm.h"
#include "mim/plug/mach/liveness.h"
Include dependency graph for emit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mim::plug::mach::Reg
 A physical register of a register class. More...
struct  mim::plug::mach::Src
 The source of a copy: a register or a literal; reg.cls is the class of either. More...
class  mim::plug::mach::Emitter
 Writes the GNU assembler code of one function on the registers that Color assigned. More...

Namespaces

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

Typedefs

using mim::plug::mach::Moves = fe::Vector<std::pair<Reg, Src>>

Functions

void mim::plug::mach::mim_mach_emit (Emitter &emitter, bool global)
 Emitter::emit, compiled once into libmim_mach; Emitter reaches it via GET_FUN_PTR.

Class Documentation

◆ mim::plug::mach::Src

struct mim::plug::mach::Src

The source of a copy: a register or a literal; reg.cls is the class of either.

Definition at line 32 of file emit.h.

Class Members
const Def * imm = nullptr
Reg reg = {}