#include <backend.hpp>
|
| void | register_backend (const std::string &name, std::shared_ptr< Backend > backend, int priority=0) |
| |
| void | load_plugin (const std::string &name, const std::string &path, int priority=0) |
| | Load a shared-library backend (see LoadBackendPlugin) and register it.
|
| |
| std::size_t | load_plugins_from_env (const char *env_var="CONTINUUM_BACKEND_PLUGINS") |
| |
| std::vector< std::string > | names () const |
| | Registered backend names, in no particular order.
|
| |
| std::shared_ptr< Backend > | get (const std::string &name) const |
| |
| bool | has (const std::string &name) const |
| |
| std::shared_ptr< Backend > | get_backend_for (ir::NodeKind kind) const |
| | Returns a backend that supports kind, or nullptr if none is registered.
|
| |
| BackendSelection | select_backend (const ir::Node &node) const |
| |
◆ get()
| std::shared_ptr< Backend > continuum::backend::BackendRegistry::get |
( |
const std::string & |
name | ) |
const |
◆ get_backend_for()
| std::shared_ptr< Backend > continuum::backend::BackendRegistry::get_backend_for |
( |
ir::NodeKind |
kind | ) |
const |
Returns a backend that supports kind, or nullptr if none is registered.
◆ has()
| bool continuum::backend::BackendRegistry::has |
( |
const std::string & |
name | ) |
const |
◆ load_plugin()
| void continuum::backend::BackendRegistry::load_plugin |
( |
const std::string & |
name, |
|
|
const std::string & |
path, |
|
|
int |
priority = 0 |
|
) |
| |
Load a shared-library backend (see LoadBackendPlugin) and register it.
◆ load_plugins_from_env()
| std::size_t continuum::backend::BackendRegistry::load_plugins_from_env |
( |
const char * |
env_var = "CONTINUUM_BACKEND_PLUGINS" | ) |
|
Load every plugin listed in environment variable env_var (format: see ParsePluginSpecs). Returns the number loaded; an unset or empty variable loads nothing.
◆ names()
| std::vector< std::string > continuum::backend::BackendRegistry::names |
( |
| ) |
const |
Registered backend names, in no particular order.
◆ register_backend()
| void continuum::backend::BackendRegistry::register_backend |
( |
const std::string & |
name, |
|
|
std::shared_ptr< Backend > |
backend, |
|
|
int |
priority = 0 |
|
) |
| |
◆ select_backend()
The documentation for this class was generated from the following file: