@ unknown
Unrecognized file.
This is an optimization pass for GlobalISel generic memory operations.
file_magic - An "enum class" enumeration of file types based on magic (the first N bytes of the file)...
@ elf_core
ELF core image.
@ macho_dynamic_linker
The Mach-O dynamic linker.
@ elf_shared_object
ELF dynamically linked shared lib.
@ goff_object
GOFF object file.
The instances of the Type class are immutable: once they are created, they are never changed.
Tagged union holding either a T or a Error.
void consumeError(Error Err)
Consume a Error without doing anything.
@ macho_file_set
Mach-O file set binary.
Error errorCodeToError(std::error_code EC)
Helper for converting an std::error_code to a Error.
@ xcoff_object_64
64-bit XCOFF object file
@ macho_preload_executable
Mach-O Preloaded Executable.
@ macho_bundle
Mach-O Bundle file.
@ macho_core
Mach-O Core File.
@ macho_dsym_companion
Mach-O dSYM companion file.
@ elf_relocatable
ELF Relocatable object file.
@ coff_import_library
COFF import library.
static bool isSymbolicFile(file_magic Type, const LLVMContext *Context)
@ pecoff_executable
PECOFF executable file.
static Expected< MemoryBufferRef > findBitcodeInObject(const ObjectFile &Obj)
Finds and returns bitcode embedded in the given object file, or an error code if not found.
bar al al movzbl eax ret Missed when stored in a memory object
@ macho_dynamically_linked_shared_lib
Mach-O dynlinked shared lib.
@ macho_dynamically_linked_shared_lib_stub
Mach-O Shared lib stub.
compiles ldr LCPI1_0 ldr ldr mov lsr tst moveq r1 ldr LCPI1_1 and r0 bx lr It would be better to do something like to fold the shift into the conditional move
This is an important class for using LLVM in a threaded context.
@ coff_object
COFF object file.
static Expected< OwningBinary< ObjectFile > > createObjectFile(StringRef ObjectPath)
StringRef - Represent a constant reference to a string, i.e.
@ macho_kext_bundle
Mach-O kext bundle file.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
reference get()
Returns a reference to the stored T value.
SymbolicFile(unsigned int Type, MemoryBufferRef Source)
@ macho_fixed_virtual_memory_shared_lib
Mach-O Shared Lib, FVM.
static Expected< std::unique_ptr< SymbolicFile > > createSymbolicFile(MemoryBufferRef Object, llvm::file_magic Type, LLVMContext *Context, bool InitContent=true)
@ elf_executable
ELF Executable image.
Error takeError()
Take ownership of the stored error.
static Expected< std::unique_ptr< IRObjectFile > > create(MemoryBufferRef Object, LLVMContext &Context)
@ wasm_object
WebAssembly Object file.
@ macho_executable
Mach-O Executable.
file_magic identify_magic(StringRef magic)
Identify the type of a binary file based on how magical it is.
@ macho_object
Mach-O Object file.
@ xcoff_object_32
32-bit XCOFF object file