Thorin 1.9.0
The Higher ORder INtermediate representation
Loading...
Searching...
No Matches
thorin::Plugin Struct Reference

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

#include <thorin/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 thorin::Plugin::Handle = std::unique_ptr<void, void (*)(void*)>

Definition at line 30 of file plugin.h.

Member Data Documentation

◆ plugin_name

const char* thorin::Plugin::plugin_name

Name of the Plugin.

Definition at line 32 of file plugin.h.

◆ register_backends

void(* thorin::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(* thorin::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(* thorin::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: