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 &normalizers)
 Callback for registering the mapping from axiom ids to normalizer functions in the given normalizers map.
 
void(* register_passes )(Passes &passes)
 Callback for registering the Plugin's callbacks for the pipeline extension points.
 
void(* register_backends )(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 29 of file plugin.h.

Member Typedef Documentation

◆ Handle

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

Definition at line 30 of file plugin.h.

Member Data Documentation

◆ plugin_name

const char* mim::Plugin::plugin_name

Name of the Plugin.

Definition at line 32 of file plugin.h.

◆ register_backends

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

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

Definition at line 39 of file plugin.h.

◆ register_normalizers

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

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

Definition at line 35 of file plugin.h.

◆ register_passes

void(* mim::Plugin::register_passes) (Passes &passes)

Callback for registering the Plugin's callbacks for the pipeline extension points.

Definition at line 37 of file plugin.h.


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