LLVM  9.0.0svn
Functions
Triple.cpp File Reference
#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 "llvm/Support/Host.h"
#include "llvm/Support/TargetParser.h"
#include <cstring>
Include dependency graph for Triple.cpp:

Go to the source code of this file.

Functions

static Triple::ArchType parseBPFArch (StringRef ArchName)
 
static Triple::ArchType parseARMArch (StringRef ArchName)
 
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 StringRef getObjectFormatTypeName (Triple::ObjectFormatType Kind)
 
static Triple::ObjectFormatType getDefaultFormat (const Triple &T)
 
static unsigned EatNumber (StringRef &Str)
 
static void parseVersionFromName (StringRef Name, unsigned &Major, unsigned &Minor, unsigned &Micro)
 
static unsigned getArchPointerBitWidth (llvm::Triple::ArchType Arch)
 

Function Documentation

◆ EatNumber()

static unsigned EatNumber ( StringRef Str)
static

Definition at line 1015 of file Triple.cpp.

References assert(), llvm::StringRef::empty(), and llvm::StringRef::substr().

Referenced by parseVersionFromName().

◆ getArchPointerBitWidth()

static unsigned getArchPointerBitWidth ( llvm::Triple::ArchType  Arch)
static

◆ getDefaultFormat()

static Triple::ObjectFormatType getDefaultFormat ( const Triple T)
static

◆ getObjectFormatTypeName()

static StringRef getObjectFormatTypeName ( Triple::ObjectFormatType  Kind)
static

◆ parseArch()

static Triple::ArchType parseArch ( StringRef  ArchName)
static

Definition at line 386 of file Triple.cpp.

References llvm::Triple::aarch64, llvm::Triple::aarch64_32, llvm::Triple::aarch64_be, llvm::Triple::amdgcn, llvm::Triple::amdil, llvm::Triple::amdil64, llvm::Triple::arc, llvm::Triple::arm, llvm::Triple::armeb, llvm::Triple::avr, llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Cases(), llvm::StringSwitch< T, R >::Default(), llvm::Triple::hexagon, llvm::Triple::hsail, llvm::Triple::hsail64, llvm::Triple::kalimba, llvm::Triple::lanai, 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, parseARMArch(), parseBPFArch(), llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::ppc64le, llvm::Triple::r600, llvm::Triple::renderscript32, llvm::Triple::renderscript64, llvm::Triple::riscv32, llvm::Triple::riscv64, llvm::Triple::shave, llvm::Triple::sparc, llvm::Triple::sparcel, llvm::Triple::sparcv9, llvm::Triple::spir, llvm::Triple::spir64, llvm::StringSwitch< T, R >::StartsWith(), llvm::StringRef::startswith(), llvm::Triple::systemz, llvm::Triple::tce, llvm::Triple::tcele, llvm::Triple::thumb, llvm::Triple::thumbeb, llvm::Triple::UnknownArch, llvm::Triple::wasm32, llvm::Triple::wasm64, llvm::Triple::x86, llvm::Triple::x86_64, and llvm::Triple::xcore.

Referenced by llvm::AArch64::getDefaultCPU(), llvm::ARM::getDefaultCPU(), llvm::Triple::normalize(), llvm::ARM::parseArchProfile(), llvm::ARM::parseArchVersion(), and llvm::Triple::Triple().

◆ parseARMArch()

static Triple::ArchType parseARMArch ( StringRef  ArchName)
static

◆ parseBPFArch()

static Triple::ArchType parseBPFArch ( StringRef  ArchName)
static

◆ parseEnvironment()

static Triple::EnvironmentType parseEnvironment ( StringRef  EnvironmentName)
static

◆ parseFormat()

static Triple::ObjectFormatType parseFormat ( StringRef  EnvironmentName)
static

◆ parseOS()

static Triple::OSType parseOS ( StringRef  OSName)
static

◆ parseSubArch()

static Triple::SubArchType parseSubArch ( StringRef  SubArchName)
static

◆ parseVendor()

static Triple::VendorType parseVendor ( StringRef  VendorName)
static

◆ parseVersionFromName()

static void parseVersionFromName ( StringRef  Name,
unsigned Major,
unsigned Minor,
unsigned Micro 
)
static