LLVM
15.0.0git
|
Typedefs | |
using | PlatformSet = SmallSet< PlatformType, 3 > |
using | TargetList = SmallVector< Target, 5 > |
Variables | |
const uint32_t | x86_THREAD_STATE32_COUNT |
const uint32_t | x86_THREAD_STATE64_COUNT |
const uint32_t | x86_FLOAT_STATE64_COUNT |
const uint32_t | x86_EXCEPTION_STATE64_COUNT |
const uint32_t | x86_THREAD_STATE_COUNT |
const uint32_t | x86_FLOAT_STATE_COUNT |
const uint32_t | x86_EXCEPTION_STATE_COUNT |
const uint32_t | ARM_THREAD_STATE_COUNT |
const uint32_t | ARM_THREAD_STATE64_COUNT |
const uint32_t | PPC_THREAD_STATE_COUNT |
constexpr StringLiteral | ObjC1ClassNamePrefix = ".objc_class_name_" |
constexpr StringLiteral | ObjC2ClassNamePrefix = "_OBJC_CLASS_$_" |
constexpr StringLiteral | ObjC2MetaClassNamePrefix = "_OBJC_METACLASS_$_" |
constexpr StringLiteral | ObjC2EHTypePrefix = "_OBJC_EHTYPE_$_" |
constexpr StringLiteral | ObjC2IVarPrefix = "_OBJC_IVAR_$_" |
using llvm::MachO::PlatformSet = typedef SmallSet<PlatformType, 3> |
Definition at line 21 of file Platform.h.
using llvm::MachO::TargetList = typedef SmallVector<Target, 5> |
anonymous enum : uint32_t |
anonymous enum |
anonymous enum : uint32_t |
anonymous enum : uint32_t |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum : uint32_t |
anonymous enum : uint32_t |
anonymous enum |
enum llvm::MachO::Architecture : uint8_t |
Defines the architecture slices that are supported by Text-based Stub files.
Enumerator | |
---|---|
AK_unknown |
Definition at line 27 of file Architecture.h.
enum llvm::MachO::CPUType |
enum llvm::MachO::FileType : unsigned |
Defines the file type this file represents.
Definition at line 53 of file InterfaceFile.h.
enum llvm::MachO::NListType : uint8_t |
|
strong |
Defines a list of Objective-C constraints.
Definition at line 33 of file InterfaceFile.h.
enum llvm::MachO::SectionType : uint32_t |
These are the section type and attributes fields.
A MachO section can have only one Type, but can have any of the attributes specified.
|
strong |
|
strong |
|
inline |
Definition at line 1497 of file MachO.h.
References llvm::ARM_MB::ST.
|
inline |
Definition at line 1500 of file MachO.h.
References llvm::ARM_MB::ST.
|
inline |
Definition at line 1416 of file MachO.h.
Referenced by llvm::object::MachOObjectFile::checkSymbolTable().
Architecture llvm::MachO::getArchitectureFromCpuType | ( | uint32_t | CPUType, |
uint32_t | CPUSubType | ||
) |
Convert a CPU Type and Subtype pair to an architecture slice.
Definition at line 23 of file Architecture.cpp.
References AK_unknown.
Architecture llvm::MachO::getArchitectureFromName | ( | StringRef | Name | ) |
Convert a name to an architecture slice.
Definition at line 34 of file Architecture.cpp.
References AK_unknown, and llvm::StringSwitch< T, R >::Default().
Referenced by llvm::MachO::Target::create(), llvm::yaml::ScalarTraits< UUID >::input(), and mapToArchitecture().
StringRef llvm::MachO::getArchitectureName | ( | Architecture | Arch | ) |
Convert an architecture slice to a string.
Definition at line 42 of file Architecture.cpp.
References AK_unknown.
Referenced by llvm::object::TapiUniversal::ObjectForArch::getArchFlagName(), getTargetTripleName(), llvm::MachO::Target::operator std::string(), llvm::MachO::ArchitectureSet::operator std::string(), and operator<<().
Definition at line 95 of file MachO.cpp.
References llvm::Triple::aarch64_32, getARM64SubType(), getARMSubType(), getPowerPCSubType(), getX86SubType(), llvm::Triple::ppc, llvm::Triple::ppc64, and unsupported().
Referenced by getMachoCPUFromTriple(), and llvm::LTOModule::getMachOCPUSubType().
Definition at line 77 of file MachO.cpp.
References CPU_TYPE_ARM, CPU_TYPE_ARM64, CPU_TYPE_ARM64_32, CPU_TYPE_POWERPC, CPU_TYPE_POWERPC64, CPU_TYPE_X86, CPU_TYPE_X86_64, llvm::Triple::ppc, llvm::Triple::ppc64, and unsupported().
Referenced by llvm::ARMAsmBackendDarwin::createObjectTargetWriter(), getMachoCPUFromTriple(), and llvm::LTOModule::getMachOCPUType().
std::pair< uint32_t, uint32_t > llvm::MachO::getCPUTypeFromArchitecture | ( | Architecture | Arch | ) |
Convert an architecture slice to a CPU Type and Subtype pair.
Definition at line 58 of file Architecture.cpp.
References AK_unknown.
Referenced by llvm::object::TapiUniversal::ObjectForArch::getCPUSubType(), and llvm::object::TapiUniversal::ObjectForArch::getCPUType().
std::string llvm::MachO::getOSAndEnvironmentName | ( | PlatformType | Platform, |
std::string | Version = "" |
||
) |
Definition at line 106 of file Platform.cpp.
References llvm_unreachable, PLATFORM_BRIDGEOS, PLATFORM_DRIVERKIT, PLATFORM_IOS, PLATFORM_IOSSIMULATOR, PLATFORM_MACCATALYST, PLATFORM_MACOS, PLATFORM_TVOS, PLATFORM_TVOSSIMULATOR, PLATFORM_UNKNOWN, PLATFORM_WATCHOS, PLATFORM_WATCHOSSIMULATOR, and llvm::IndexedInstrProf::Version.
Referenced by getTargetTripleName().
PlatformType llvm::MachO::getPlatformFromName | ( | StringRef | Name | ) |
Definition at line 91 of file Platform.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), PLATFORM_BRIDGEOS, PLATFORM_DRIVERKIT, PLATFORM_IOS, PLATFORM_IOSSIMULATOR, PLATFORM_MACCATALYST, PLATFORM_MACOS, PLATFORM_TVOS, PLATFORM_TVOSSIMULATOR, PLATFORM_UNKNOWN, PLATFORM_WATCHOS, and PLATFORM_WATCHOSSIMULATOR.
StringRef llvm::MachO::getPlatformName | ( | PlatformType | Platform | ) |
Definition at line 63 of file Platform.cpp.
References llvm_unreachable, PLATFORM_BRIDGEOS, PLATFORM_DRIVERKIT, PLATFORM_IOS, PLATFORM_IOSSIMULATOR, PLATFORM_MACCATALYST, PLATFORM_MACOS, PLATFORM_TVOS, PLATFORM_TVOSSIMULATOR, PLATFORM_UNKNOWN, PLATFORM_WATCHOS, and PLATFORM_WATCHOSSIMULATOR.
Referenced by llvm::MachO::Target::operator std::string().
Definition at line 72 of file Target.cpp.
References llvm::MachO::Target::Arch, getArchitectureName(), getOSAndEnvironmentName(), and llvm::MachO::Target::Platform.
bool llvm::MachO::is64Bit | ( | Architecture | Arch | ) |
Check if architecture is 64 bit.
Definition at line 78 of file Architecture.cpp.
References AK_unknown, and llvm_unreachable.
Referenced by llvm::object::TapiFile::is64Bit().
|
inline |
Definition at line 594 of file MachO.h.
References S_GB_ZEROFILL, S_THREAD_LOCAL_ZEROFILL, S_ZEROFILL, and type.
Architecture llvm::MachO::mapToArchitecture | ( | const llvm::Triple & | Target | ) |
Convert a target to an architecture slice.
Definition at line 74 of file Architecture.cpp.
References getArchitectureFromName().
ArchitectureSet llvm::MachO::mapToArchitectureSet | ( | ArrayRef< Target > | Targets | ) |
Definition at line 65 of file Target.cpp.
References llvm::MachO::Target::Arch.
Referenced by llvm::MachO::Symbol::getArchitectures(), llvm::MachO::InterfaceFileRef::getArchitectures(), and llvm::MachO::InterfaceFile::getArchitectures().
PlatformSet llvm::MachO::mapToPlatformSet | ( | ArrayRef< Target > | Targets | ) |
Definition at line 58 of file Target.cpp.
References llvm::MachO::Target::Platform.
PlatformSet llvm::MachO::mapToPlatformSet | ( | ArrayRef< Triple > | Targets | ) |
Definition at line 56 of file Platform.cpp.
References mapToPlatformType().
Referenced by llvm::MachO::InterfaceFileRef::getPlatforms(), and llvm::MachO::InterfaceFile::getPlatforms().
PlatformType llvm::MachO::mapToPlatformType | ( | const Triple & | Target | ) |
Definition at line 34 of file Platform.cpp.
References llvm::Triple::IOS, llvm::Triple::MacABI, llvm::Triple::MacOSX, PLATFORM_IOS, PLATFORM_IOSSIMULATOR, PLATFORM_MACCATALYST, PLATFORM_MACOS, PLATFORM_TVOS, PLATFORM_TVOSSIMULATOR, PLATFORM_UNKNOWN, PLATFORM_WATCHOS, PLATFORM_WATCHOSSIMULATOR, llvm::Triple::TvOS, and llvm::Triple::WatchOS.
PlatformType llvm::MachO::mapToPlatformType | ( | PlatformType | Platform, |
bool | WantSim | ||
) |
Definition at line 21 of file Platform.cpp.
References PLATFORM_IOS, PLATFORM_IOSSIMULATOR, PLATFORM_TVOS, PLATFORM_TVOSSIMULATOR, PLATFORM_WATCHOS, and PLATFORM_WATCHOSSIMULATOR.
Referenced by mapToPlatformSet(), and llvm::yaml::MappingTraits< const InterfaceFile * >::NormalizedTBD::synthesizeTargets().
|
inline |
raw_ostream & llvm::MachO::operator<< | ( | raw_ostream & | OS, |
Architecture | Arch | ||
) |
Definition at line 92 of file Architecture.cpp.
References getArchitectureName().
raw_ostream & llvm::MachO::operator<< | ( | raw_ostream & | OS, |
ArchitectureSet | Set | ||
) |
Definition at line 64 of file ArchitectureSet.cpp.
References set.
|
inline |
Definition at line 59 of file PackedVersion.h.
References llvm::IndexedInstrProf::Version.
raw_ostream & llvm::MachO::operator<< | ( | raw_ostream & | OS, |
const Target & | Target | ||
) |
Definition at line 53 of file Target.cpp.
bool llvm::MachO::operator== | ( | const DenseMapBase< DerivedT, SymbolsMapKey, MachO::Symbol *, KeyInfoT, BucketT > & | LHS, |
const DenseMapBase< DerivedT, SymbolsMapKey, MachO::Symbol *, KeyInfoT, BucketT > & | RHS | ||
) |
Definition at line 440 of file InterfaceFile.h.
|
inline |
|
inline |
Definition at line 161 of file ArchitectureSet.h.
|
inline |
|
inline |
|
inline |
Definition at line 1284 of file MachO.h.
References llvm::MachO::any_relocation_info::r_word0, llvm::MachO::any_relocation_info::r_word1, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1875 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1834 of file MachO.h.
References i, llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1853 of file MachO.h.
References i, llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1890 of file MachO.h.
References ARM_THREAD_STATE, swapStruct(), and x.
|
inline |
Definition at line 1342 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1333 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1347 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 2033 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1135 of file MachO.h.
References info, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1150 of file MachO.h.
References d, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1214 of file MachO.h.
References d, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1261 of file MachO.h.
References llvm::MachO::dysymtab_command::cmd, llvm::MachO::dysymtab_command::cmdsize, llvm::MachO::dysymtab_command::extrefsymoff, llvm::MachO::dysymtab_command::extreloff, llvm::MachO::dysymtab_command::iextdefsym, llvm::MachO::dysymtab_command::ilocalsym, llvm::MachO::dysymtab_command::indirectsymoff, llvm::MachO::dysymtab_command::iundefsym, llvm::MachO::dysymtab_command::locreloff, llvm::MachO::dysymtab_command::modtaboff, llvm::MachO::dysymtab_command::nextdefsym, llvm::MachO::dysymtab_command::nextrefsyms, llvm::MachO::dysymtab_command::nextrel, llvm::MachO::dysymtab_command::nindirectsyms, llvm::MachO::dysymtab_command::nlocalsym, llvm::MachO::dysymtab_command::nlocrel, llvm::MachO::dysymtab_command::nmodtab, llvm::MachO::dysymtab_command::ntoc, llvm::MachO::dysymtab_command::nundefsym, llvm::sys::swapByteOrder(), and llvm::MachO::dysymtab_command::tocoff.
|
inline |
Definition at line 1244 of file MachO.h.
References llvm::numbers::e, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1252 of file MachO.h.
References llvm::numbers::e, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1237 of file MachO.h.
References llvm::numbers::e, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1033 of file MachO.h.
References llvm::MachO::fat_arch::align, llvm::MachO::fat_arch::cpusubtype, llvm::MachO::fat_arch::cputype, llvm::MachO::fat_arch::offset, llvm::MachO::fat_arch::size, and llvm::sys::swapByteOrder().
|
inline |
|
inline |
Definition at line 1028 of file MachO.h.
References llvm::MachO::fat_header::magic, llvm::MachO::fat_header::nfat_arch, and llvm::sys::swapByteOrder().
Referenced by getStruct(), getStructOrErr(), getUniversalBinaryStruct(), swapStruct(), writeNListEntry(), and llvm::object::writeUniversalBinaryToStream().
|
inline |
Definition at line 1380 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1401 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1408 of file MachO.h.
References llvm::sys::swapByteOrder(), and swapStruct().
|
inline |
Definition at line 1396 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1306 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1313 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1071 of file MachO.h.
References llvm::MachO::load_command::cmd, llvm::MachO::load_command::cmdsize, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1050 of file MachO.h.
References llvm::MachO::mach_header::cpusubtype, llvm::MachO::mach_header::cputype, llvm::MachO::mach_header::filetype, llvm::MachO::mach_header::flags, llvm::MachO::mach_header::magic, llvm::MachO::mach_header::ncmds, llvm::MachO::mach_header::sizeofcmds, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1060 of file MachO.h.
References H, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1294 of file MachO.h.
References llvm::MachO::nlist::n_desc, llvm::MachO::nlist::n_strx, llvm::MachO::nlist::n_value, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1300 of file MachO.h.
References llvm::MachO::nlist_64::n_desc, llvm::MachO::nlist_64::n_strx, llvm::MachO::nlist_64::n_value, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1289 of file MachO.h.
References S, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1326 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 2000 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1945 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 2015 of file MachO.h.
References PPC_THREAD_STATE, swapStruct(), and x.
|
inline |
Definition at line 1356 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1371 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1183 of file MachO.h.
References llvm::MachO::routines_command::cmd, llvm::MachO::routines_command::cmdsize, llvm::MachO::routines_command::init_address, llvm::MachO::routines_command::init_module, llvm::MachO::routines_command::reserved1, llvm::MachO::routines_command::reserved2, llvm::MachO::routines_command::reserved3, llvm::MachO::routines_command::reserved4, llvm::MachO::routines_command::reserved5, llvm::MachO::routines_command::reserved6, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1196 of file MachO.h.
References llvm::MachO::routines_command_64::cmd, llvm::MachO::routines_command_64::cmdsize, llvm::MachO::routines_command_64::init_address, llvm::MachO::routines_command_64::init_module, llvm::MachO::routines_command_64::reserved1, llvm::MachO::routines_command_64::reserved2, llvm::MachO::routines_command_64::reserved3, llvm::MachO::routines_command_64::reserved4, llvm::MachO::routines_command_64::reserved5, llvm::MachO::routines_command_64::reserved6, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1225 of file MachO.h.
References llvm::MachO::rpath_command::cmd, llvm::MachO::rpath_command::cmdsize, llvm::MachO::rpath_command::path, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1123 of file MachO.h.
References llvm::MachO::section::addr, llvm::MachO::section::align, llvm::MachO::section::flags, llvm::MachO::section::nreloc, llvm::MachO::section::offset, llvm::MachO::section::reloff, llvm::MachO::section::reserved1, llvm::MachO::section::reserved2, llvm::MachO::section::size, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1111 of file MachO.h.
References llvm::MachO::section_64::addr, llvm::MachO::section_64::align, llvm::MachO::section_64::flags, llvm::MachO::section_64::nreloc, llvm::MachO::section_64::offset, llvm::MachO::section_64::reloff, llvm::MachO::section_64::reserved1, llvm::MachO::section_64::reserved2, llvm::MachO::section_64::size, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1098 of file MachO.h.
References llvm::MachO::segment_command::cmd, llvm::MachO::segment_command::cmdsize, llvm::MachO::segment_command::fileoff, llvm::MachO::segment_command::filesize, llvm::MachO::segment_command::flags, llvm::MachO::segment_command::initprot, llvm::MachO::segment_command::maxprot, llvm::MachO::segment_command::nsects, llvm::sys::swapByteOrder(), llvm::MachO::segment_command::vmaddr, and llvm::MachO::segment_command::vmsize.
|
inline |
Definition at line 1085 of file MachO.h.
References llvm::MachO::segment_command_64::cmd, llvm::MachO::segment_command_64::cmdsize, llvm::MachO::segment_command_64::fileoff, llvm::MachO::segment_command_64::filesize, llvm::MachO::segment_command_64::flags, llvm::MachO::segment_command_64::initprot, llvm::MachO::segment_command_64::maxprot, llvm::MachO::segment_command_64::nsects, llvm::sys::swapByteOrder(), llvm::MachO::segment_command_64::vmaddr, and llvm::MachO::segment_command_64::vmsize.
|
inline |
Definition at line 1231 of file MachO.h.
References s, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1177 of file MachO.h.
References s, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1159 of file MachO.h.
References s, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1171 of file MachO.h.
References s, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1165 of file MachO.h.
References s, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1388 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1076 of file MachO.h.
References llvm::MachO::symtab_command::cmd, llvm::MachO::symtab_command::cmdsize, llvm::MachO::symtab_command::nsyms, llvm::MachO::symtab_command::stroff, llvm::MachO::symtab_command::strsize, llvm::sys::swapByteOrder(), and llvm::MachO::symtab_command::symoff.
|
inline |
Definition at line 1209 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1363 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1353 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1220 of file MachO.h.
References llvm::MachO::uuid_command::cmd, llvm::MachO::uuid_command::cmdsize, and llvm::sys::swapByteOrder().
|
inline |
Definition at line 1319 of file MachO.h.
References llvm::sys::swapByteOrder().
|
inline |
Definition at line 1737 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1803 of file MachO.h.
References swapStruct(), x, and x86_EXCEPTION_STATE64.
|
inline |
Definition at line 1720 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1797 of file MachO.h.
References swapStruct(), x, and x86_FLOAT_STATE64.
|
inline |
Definition at line 1771 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1677 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1696 of file MachO.h.
References llvm::sys::swapByteOrder(), and x.
|
inline |
Definition at line 1791 of file MachO.h.
References swapStruct(), x, and x86_THREAD_STATE64.
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |