13 #define DONT_GET_PLUGIN_LOADER_OPTION 29 errs() <<
"Error opening '" << Filename <<
"': " << Error
30 <<
"\n -load request ignored.\n";
32 Plugins->push_back(Filename);
44 "Asking for an out of bounds plugin");
45 return (*Plugins)[num];
raw_ostream & errs()
This returns a reference to a raw_ostream for standard error.
This class represents lattice values for constants.
void operator=(const std::string &Filename)
static ManagedStatic< sys::SmartMutex< true > > PluginsLock
static bool LoadLibraryPermanently(const char *Filename, std::string *ErrMsg=nullptr)
This function permanently loads the dynamic library at the given path.
static unsigned getNumPlugins()
static ManagedStatic< std::vector< std::string > > Plugins
std::lock_guard< SmartMutex< mt_only > > SmartScopedLock
bool isConstructed() const
isConstructed - Return true if this object has not been created yet.
static std::string & getPlugin(unsigned num)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on...