14 #define DONT_GET_PLUGIN_LOADER_OPTION 30 errs() <<
"Error opening '" << Filename <<
"': " << Error
31 <<
"\n -load request ignored.\n";
33 Plugins->push_back(Filename);
45 "Asking for an out of bounds plugin");
46 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
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...