19#define DEBUG_TYPE "jitlink"
26 std::shared_ptr<orc::SymbolStringPool> SSP) {
38 std::unique_ptr<JITLinkContext> Ctx) {
Tagged union holding either a T or a Error.
StringRef getBuffer() const
Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromXCOFFObject(MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)
Create a LinkGraph from an XCOFF relocatable object.
Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromXCOFFObject_ppc64(MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)
Create a LinkGraph from an XCOFF/ppc64 relocatable object.
void link_XCOFF_ppc64(std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
jit-link the given object buffer, which must be a XCOFF ppc64 object file.
void link_XCOFF(std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
Link the given graph.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI file_magic identify_magic(StringRef magic)
Identify the type of a binary file based on how magical it is.
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file)...
@ xcoff_object_64
64-bit XCOFF object file