Go to the documentation of this file.
21 return make_error<StringError>(
Twine(
"Could not load library '") +
22 Filename +
"': " +
Error,
35 return make_error<StringError>(
Twine(
"Plugin entry point not found in '") +
36 Filename +
"'. Is this a legacy plugin?",
42 return make_error<StringError>(
43 Twine(
"Wrong API version on plugin '") + Filename +
"'. Got version " +
44 Twine(
P.Info.APIVersion) +
", supported version is " +
48 if (!
P.Info.RegisterPassBuilderCallbacks)
49 return make_error<StringError>(
Twine(
"Empty entry callback in plugin '") +
This is an optimization pass for GlobalISel generic memory operations.
void * getAddressOfSymbol(const char *symbolName)
Searches through the library for the symbol symbolName.
#define LLVM_PLUGIN_API_VERSION
\macro LLVM_PLUGIN_API_VERSION Identifies the API version understood by this plugin.
This currently compiles esp xmm0 movsd esp eax eax esp ret We should use not the dag combiner This is because dagcombine2 needs to be able to see through the X86ISD::Wrapper which DAGCombine can t really do The code for turning x load into a single vector load is target independent and should be moved to the dag combiner The code for turning x load into a vector load can only handle a direct load from a global or a direct load from the stack It should be generalized to handle any load from P
Tagged union holding either a T or a Error.
static Expected< PassPlugin > Load(const std::string &Filename)
Attempts to load a pass plugin from a given file.
static DynamicLibrary getPermanentLibrary(const char *filename, std::string *errMsg=nullptr)
This function permanently loads the dynamic library at the given path.
bool isValid() const
Returns true if the object refers to a valid library.
::llvm::PassPluginLibraryInfo LLVM_ATTRIBUTE_WEAK llvmGetPassPluginInfo()
The public entry point for a pass plugin.
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
Lightweight error class with error context and mandatory checking.