LLVM 22.0.0git
MachO.h File Reference

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

Typedefs

using llvm::orc::GetFallbackArchsFn

Functions

LLVM_ABI 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.
LLVM_ABI 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.
LLVM_ABI 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.
LLVM_ABI 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.
LLVM_ABI 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.
LLVM_ABI 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.
LLVM_ABI SmallVector< std::pair< uint32_t, uint32_t > > llvm::orc::noFallbackArchs (uint32_t CPUType, uint32_t CPUSubType)
 Match the exact CPU type/subtype only.
LLVM_ABI SmallVector< std::pair< uint32_t, uint32_t > > llvm::orc::standardMachOFallbackArchs (uint32_t CPUType, uint32_t CPUSubType)
 Match standard dynamic loader fallback rules.
LLVM_ABI Expected< SymbolNameSetllvm::orc::getDylibInterfaceFromDylib (ExecutionSession &ES, Twine Path, GetFallbackArchsFn GetFallbackArchs=standardMachOFallbackArchs)
 Returns a SymbolNameSet containing the exported symbols defined in the given dylib.
LLVM_ABI Expected< SymbolNameSetllvm::orc::getDylibInterfaceFromTapiFile (ExecutionSession &ES, Twine Path, GetFallbackArchsFn GetFallbackArchs=standardMachOFallbackArchs)
 Returns a SymbolNameSet containing the exported symbols defined in the relevant slice of the TapiUniversal file.
LLVM_ABI Expected< SymbolNameSetllvm::orc::getDylibInterface (ExecutionSession &ES, Twine Path, GetFallbackArchsFn GetFallbackArchs=standardMachOFallbackArchs)
 Returns a SymbolNameSet containing the exported symbols defined in the relevant slice of the given file, which may be either a dylib or a tapi file.