LLVM 20.0.0git
Classes | Namespaces | Functions
MachO.h File Reference
#include "llvm/ExecutionEngine/Orc/LoadLinkableFile.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/TargetParser/Triple.h"

Go to the source code of this file.

Classes

class  llvm::orc::ForceLoadMachOArchiveMembers
 For use with StaticLibraryDefinitionGenerators. More...
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::object
 
namespace  llvm::orc
 

Functions

Error llvm::orc::checkMachORelocatableObject (MemoryBufferRef Obj, const Triple &TT, bool ObjIsSlice)
 Check that the given buffer contains a MachO object file compatible with the given triple.
 
Expected< std::unique_ptr< MemoryBuffer > > llvm::orc::checkMachORelocatableObject (std::unique_ptr< MemoryBuffer > Obj, const Triple &TT, bool ObjIsSlice)
 Check that the given buffer contains a MachO object file compatible with the given triple.
 
Expected< std::pair< std::unique_ptr< MemoryBuffer >, LinkableFileKind > > llvm::orc::loadMachOLinkableFile (StringRef Path, const Triple &TT, LoadArchives LA, std::optional< StringRef > IdentifierOverride=std::nullopt)
 Load a relocatable object compatible with TT from Path.
 
Expected< std::pair< std::unique_ptr< MemoryBuffer >, LinkableFileKind > > llvm::orc::loadLinkableSliceFromMachOUniversalBinary (sys::fs::file_t FD, std::unique_ptr< MemoryBuffer > UBBuf, const Triple &TT, LoadArchives LA, StringRef UBPath, StringRef Identifier)
 Load a compatible relocatable object (if available) from a MachO universal binary.
 
Expected< std::pair< size_t, size_t > > llvm::orc::getMachOSliceRangeForTriple (object::MachOUniversalBinary &UB, const Triple &TT)
 Utility for identifying the file-slice compatible with TT in a universal binary.
 
Expected< std::pair< size_t, size_t > > llvm::orc::getMachOSliceRangeForTriple (MemoryBufferRef UBBuf, const Triple &TT)
 Utility for identifying the file-slice compatible with TT in a universal binary.