MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
target.h File Reference
#include <optional>
#include <mim/driver.h>
#include <mim/target.h>
#include <mim/plug/core/core.h>
#include <mim/plug/math/math.h>
#include <mim/plug/mem/mem.h>
#include "mim/plug/mach/mach.h"
Include dependency graph for target.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::Constraint
 What an instruction on the chain prescribes about the registers of its operands; registers are hardware encodings. More...
class  mim::plug::mach::Target
 The machine facts of a native backend that the phases of mach need. More...

Namespaces

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

Typedefs

using mim::plug::mach::ParamRegs = fe::Vector<std::optional<size_t>>
 The register per parameter of a function with a convention of its own, or none if it is unused.

Functions

fe::Vector< std::pair< size_t, std::optional< size_t > > > mim::plug::mach::copies (const Constraint &c, auto live_after)
 The fixed operands with their registers, and the tied one with no register if it is live_after.

Class Documentation

◆ mim::plug::mach::Constraint

struct mim::plug::mach::Constraint

What an instruction on the chain prescribes about the registers of its operands; registers are hardware encodings.

Definition at line 17 of file target.h.

Class Members
Vector< size_t > clobbers Registers written while the operands still occupy theirs.
Vector< pair< size_t, size_t > > fixed Non-literal operands that have to be in a given register.
DefVec ops See Target::operands.
Vector< pair< size_t, size_t > > results Results, see Target::result, that land in a given register.
optional< size_t > tied The operand whose register the (only) result takes.