MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Target Class Referenceabstract

The machine a native backend compiles for, as far as libmim needs to know it. More...

#include <mim/target.h>

Inheritance diagram for mim::Target:
[legend]

Public Member Functions

 Target (std::string_view name)
virtual ~Target ()=default
std::string_view name () const
 The plugin name, used as the prefix of diagnostics.
virtual nat_t ptr_size () const =0
 The size and alignment of a pointer in bytes; see core.trait.

Detailed Description

The machine a native backend compiles for, as far as libmim needs to know it.

A backend plugin registers its Target via Plugin::target; see Driver::target and mim::plug::mach::Target.

Definition at line 11 of file target.h.

Constructor & Destructor Documentation

◆ Target()

mim::Target::Target ( std::string_view name)
inline

Definition at line 13 of file target.h.

References name().

◆ ~Target()

virtual mim::Target::~Target ( )
virtualdefault

Member Function Documentation

◆ name()

std::string_view mim::Target::name ( ) const
inline

The plugin name, used as the prefix of diagnostics.

Definition at line 18 of file target.h.

Referenced by mim::plug::mach::arg_k(), mim::plug::mach::param_regs(), mim::plug::mach::Target::Target(), and Target().

◆ ptr_size()

virtual nat_t mim::Target::ptr_size ( ) const
pure virtual

The size and alignment of a pointer in bytes; see core.trait.

Implemented in mim::plug::mach::Target.

Referenced by mim::plug::core::ptr_size().


The documentation for this class was generated from the following file: