MimIR 0.1
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Plugin Struct Reference

Basic info and registration function pointer to be returned from a specific plugin. More...

#include <mim/plugin.h>

Public Types

using Handle = std::unique_ptr<void, void (*)(void*)>
 

Public Attributes

const char * plugin_name
 Name of the Plugin.
 
void(* register_normalizers )(Normalizers &)
 Callback for registering the mapping from axm ids to normalizer functions in the given normalizers map.
 
void(* register_stages )(Flags2Phases &, Flags2Passes &)
 Callback for registering the Plugin's callbacks for Passes and Phases.
 
void(* register_backends )(Backends &)
 Callback for registering the mapping from backend names to emission functions in the given backends map.
 

Detailed Description

Basic info and registration function pointer to be returned from a specific plugin.

Use Driver to load such a plugin.

Definition at line 32 of file plugin.h.

Member Typedef Documentation

◆ Handle

using mim::Plugin::Handle = std::unique_ptr<void, void (*)(void*)>

Definition at line 33 of file plugin.h.

Member Data Documentation

◆ plugin_name

const char* mim::Plugin::plugin_name

Name of the Plugin.

Definition at line 35 of file plugin.h.

◆ register_backends

void(* mim::Plugin::register_backends) (Backends &)

Callback for registering the mapping from backend names to emission functions in the given backends map.

Definition at line 42 of file plugin.h.

◆ register_normalizers

void(* mim::Plugin::register_normalizers) (Normalizers &)

Callback for registering the mapping from axm ids to normalizer functions in the given normalizers map.

Definition at line 38 of file plugin.h.

◆ register_stages

void(* mim::Plugin::register_stages) (Flags2Phases &, Flags2Passes &)

Callback for registering the Plugin's callbacks for Passes and Phases.

Definition at line 40 of file plugin.h.


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