LLVM API Documentation
#include "llvm/ADT/Triple.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringSwitch.h"
#include "llvm/Support/ErrorHandling.h"
#include <cstring>
Go to the source code of this file.
Functions | |
static Triple::ArchType | parseArch (StringRef ArchName) |
static Triple::VendorType | parseVendor (StringRef VendorName) |
static Triple::OSType | parseOS (StringRef OSName) |
static Triple::EnvironmentType | parseEnvironment (StringRef EnvironmentName) |
static Triple::ObjectFormatType | parseFormat (StringRef EnvironmentName) |
static Triple::SubArchType | parseSubArch (StringRef SubArchName) |
static const char * | getObjectFormatTypeName (Triple::ObjectFormatType Kind) |
static Triple::ObjectFormatType | getDefaultFormat (const Triple &T) |
static unsigned | EatNumber (StringRef &Str) |
static unsigned | getArchPointerBitWidth (llvm::Triple::ArchType Arch) |
Definition at line 620 of file Triple.cpp.
References llvm::StringRef::empty(), and llvm::StringRef::substr().
Referenced by llvm::Triple::getOSVersion().
static unsigned getArchPointerBitWidth | ( | llvm::Triple::ArchType | Arch | ) | [static] |
Definition at line 784 of file Triple.cpp.
References llvm::Triple::aarch64, llvm::Triple::aarch64_be, llvm::Triple::amdil, llvm::Triple::arm, llvm::Triple::armeb, llvm::Triple::hexagon, llvm::Triple::kalimba, llvm::Triple::le32, llvm::Triple::le64, llvm_unreachable, llvm::Triple::mips, llvm::Triple::mips64, llvm::Triple::mips64el, llvm::Triple::mipsel, llvm::Triple::msp430, llvm::Triple::nvptx, llvm::Triple::nvptx64, llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::ppc64le, llvm::Triple::r600, llvm::Triple::sparc, llvm::Triple::sparcv9, llvm::Triple::spir, llvm::Triple::spir64, llvm::Triple::systemz, llvm::Triple::tce, llvm::Triple::thumb, llvm::Triple::thumbeb, llvm::Triple::UnknownArch, llvm::Triple::x86, llvm::Triple::x86_64, and llvm::Triple::xcore.
Referenced by llvm::Triple::isArch16Bit(), llvm::Triple::isArch32Bit(), and llvm::Triple::isArch64Bit().
static Triple::ObjectFormatType getDefaultFormat | ( | const Triple & | T | ) | [static] |
Definition at line 360 of file Triple.cpp.
References llvm::Triple::COFF, llvm::Triple::ELF, llvm::Triple::isOSDarwin(), llvm::Triple::isOSWindows(), and llvm::Triple::MachO.
Referenced by llvm::Triple::Triple().
static const char* getObjectFormatTypeName | ( | Triple::ObjectFormatType | Kind | ) | [static] |
Definition at line 350 of file Triple.cpp.
References llvm::Triple::COFF, llvm::Triple::ELF, llvm_unreachable, llvm::Triple::MachO, and llvm::Triple::UnknownObjectFormat.
Referenced by llvm::Triple::normalize(), and llvm::Triple::setObjectFormat().
static Triple::ArchType parseArch | ( | StringRef | ArchName | ) | [static] |
Definition at line 213 of file Triple.cpp.
References llvm::Triple::aarch64, llvm::Triple::aarch64_be, llvm::Triple::amdil, llvm::Triple::arm, llvm::Triple::armeb, llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Cases(), llvm::StringSwitch< T, R >::Default(), llvm::Triple::hexagon, llvm::Triple::kalimba, llvm::Triple::le32, llvm::Triple::le64, llvm::Triple::mips, llvm::Triple::mips64, llvm::Triple::mips64el, llvm::Triple::mipsel, llvm::Triple::msp430, llvm::Triple::nvptx, llvm::Triple::nvptx64, llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::ppc64le, llvm::Triple::r600, llvm::Triple::sparc, llvm::Triple::sparcv9, llvm::Triple::spir, llvm::Triple::spir64, llvm::StringSwitch< T, R >::StartsWith(), llvm::Triple::systemz, llvm::Triple::tce, llvm::Triple::thumb, llvm::Triple::thumbeb, llvm::Triple::UnknownArch, llvm::Triple::x86, llvm::Triple::x86_64, and llvm::Triple::xcore.
Referenced by llvm::Triple::normalize().
static Triple::EnvironmentType parseEnvironment | ( | StringRef | EnvironmentName | ) | [static] |
Definition at line 301 of file Triple.cpp.
References llvm::Triple::Android, llvm::Triple::CODE16, llvm::Triple::Cygnus, llvm::StringSwitch< T, R >::Default(), llvm::Triple::EABI, llvm::Triple::EABIHF, llvm::Triple::GNU, llvm::Triple::GNUEABI, llvm::Triple::GNUEABIHF, llvm::Triple::GNUX32, llvm::Triple::Itanium, llvm::Triple::MSVC, llvm::StringSwitch< T, R >::StartsWith(), and llvm::Triple::UnknownEnvironment.
Referenced by llvm::Triple::normalize().
static Triple::ObjectFormatType parseFormat | ( | StringRef | EnvironmentName | ) | [static] |
Definition at line 317 of file Triple.cpp.
References llvm::Triple::COFF, llvm::StringSwitch< T, R >::Default(), llvm::Triple::ELF, llvm::StringSwitch< T, R >::EndsWith(), llvm::Triple::MachO, and llvm::Triple::UnknownObjectFormat.
Referenced by llvm::Triple::normalize().
static Triple::OSType parseOS | ( | StringRef | OSName | ) | [static] |
Definition at line 274 of file Triple.cpp.
References llvm::Triple::AIX, llvm::Triple::Bitrig, llvm::Triple::CNK, llvm::Triple::CUDA, llvm::Triple::Darwin, llvm::StringSwitch< T, R >::Default(), llvm::Triple::DragonFly, llvm::Triple::FreeBSD, llvm::Triple::Haiku, llvm::Triple::IOS, llvm::Triple::KFreeBSD, llvm::Triple::Linux, llvm::Triple::Lv2, llvm::Triple::MacOSX, llvm::Triple::Minix, llvm::Triple::NaCl, llvm::Triple::NetBSD, llvm::Triple::NVCL, llvm::Triple::OpenBSD, llvm::Triple::RTEMS, llvm::Triple::Solaris, llvm::StringSwitch< T, R >::StartsWith(), llvm::Triple::UnknownOS, and llvm::Triple::Win32.
Referenced by llvm::Triple::normalize().
static Triple::SubArchType parseSubArch | ( | StringRef | SubArchName | ) | [static] |
Definition at line 325 of file Triple.cpp.
References llvm::Triple::ARMSubArch_v4t, llvm::Triple::ARMSubArch_v5, llvm::Triple::ARMSubArch_v5te, llvm::Triple::ARMSubArch_v6, llvm::Triple::ARMSubArch_v6m, llvm::Triple::ARMSubArch_v6t2, llvm::Triple::ARMSubArch_v7, llvm::Triple::ARMSubArch_v7em, llvm::Triple::ARMSubArch_v7m, llvm::Triple::ARMSubArch_v7s, llvm::Triple::ARMSubArch_v8, llvm::StringSwitch< T, R >::Default(), llvm::StringSwitch< T, R >::EndsWith(), llvm::Triple::KalimbaSubArch_v3, llvm::Triple::KalimbaSubArch_v4, llvm::Triple::KalimbaSubArch_v5, and llvm::Triple::NoSubArch.
static Triple::VendorType parseVendor | ( | StringRef | VendorName | ) | [static] |
Definition at line 258 of file Triple.cpp.
References llvm::Triple::Apple, llvm::Triple::BGP, llvm::Triple::BGQ, llvm::StringSwitch< T, R >::Case(), llvm::Triple::CSR, llvm::StringSwitch< T, R >::Default(), llvm::Triple::Freescale, llvm::Triple::IBM, llvm::Triple::ImaginationTechnologies, llvm::Triple::MipsTechnologies, llvm::Triple::NVIDIA, llvm::Triple::PC, llvm::Triple::SCEI, and llvm::Triple::UnknownVendor.
Referenced by llvm::Triple::normalize().