13#define DONT_GET_PLUGIN_LOADER_OPTION
25 std::vector<std::string>
List;
28Plugins &getPlugins() {
36 auto &
P = getPlugins();
40 errs() <<
"Error opening '" << Filename <<
"': " <<
Error
41 <<
"\n -load request ignored.\n";
43 P.List.push_back(Filename);
48 auto &
P = getPlugins();
54 auto &
P = getPlugins();
56 assert(num <
P.List.size() &&
"Asking for an out of bounds plugin");
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Lightweight error class with error context and mandatory checking.
static bool LoadLibraryPermanently(const char *Filename, std::string *ErrMsg=nullptr)
This function permanently loads the dynamic library at the given path.
SmartMutex - A mutex with a compile time constant parameter that indicates whether this mutex should ...
std::lock_guard< SmartMutex< mt_only > > SmartScopedLock
This is an optimization pass for GlobalISel generic memory operations.
raw_fd_ostream & errs()
This returns a reference to a raw_ostream for standard error.
static std::string & getPlugin(unsigned num)
static unsigned getNumPlugins()
void operator=(const std::string &Filename)