Create ObjectStore and ActionCache instances backed by a plugin that implements the C API in "llvm-c/CAS/PluginAPI_functions.h".
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);
A pair of plugin-backed ObjectStore and ActionCache, or an error on failure.
| Name | Description |
|---|---|
| PluginPath | path of the dynamic library to load. |
| OnDiskPath | local path that the plugin should use for any on-disk resources/caches. |
| PluginArgs | name/value pairs passed to the plugin as custom options; they are opaque to the client. |