llvm::cas::createPluginCASDatabases

Create ObjectStore and ActionCache instances backed by a plugin that implements the C API in "llvm-c/CAS/PluginAPI_functions.h".

Synopsis

Declared in <llvm/CAS/ObjectStore.h>

Expected<std::pair<std::shared_ptr<ObjectStore>, std::shared_ptr<ActionCache>>>
createPluginCASDatabases(
    StringRef PluginPath,
    StringRef OnDiskPath,
    ArrayRef<std::pair<std::string, std::string>> PluginArgs);

Return Value

A pair of plugin-backed ObjectStore and ActionCache, or an error on failure.

Parameters

NameDescription
PluginPathpath of the dynamic library to load.
OnDiskPathlocal path that the plugin should use for any on-disk resources/caches.
PluginArgsname/value pairs passed to the plugin as custom options; they are opaque to the client.