Home | History | Annotate | Download | only in Support

Lines Matching defs:Triple

1 //===--- Triple.cpp - Target triple helper class --------------------------===//
10 #include "llvm/ADT/Triple.h"
16 const char *Triple::getArchTypeName(ArchType Kind) {
50 const char *Triple::getArchTypePrefix(ArchType Kind) {
84 const char *Triple::getVendorTypeName(VendorType Kind) {
96 const char *Triple::getOSTypeName(OSType Kind) {
125 const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
137 Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
192 Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) {
208 return Triple::ppc;
211 return Triple::ppc64;
216 return Triple::x86;
219 return Triple::x86_64;
225 return Triple::arm;
228 return Triple::ptx32;
230 return Triple::ptx64;
232 return Triple::amdil;
234 return Triple::UnknownArch;
238 const char *Triple::getArchNameForAssembler() {
239 if (!isOSDarwin() && getVendor() != Triple::Apple)
277 Triple::ArchType Triple::ParseArch(StringRef ArchName) {
337 Triple::VendorType Triple::ParseVendor(StringRef VendorName) {
348 Triple::OSType Triple::ParseOS(StringRef OSName) {
393 Triple::EnvironmentType Triple::ParseEnvironment(StringRef EnvironmentName) {
406 void Triple::Parse() const {
417 std::string Triple::normalize(StringRef Str) {
553 StringRef Triple::getArchName() const {
557 StringRef Triple::getVendorName() const {
562 StringRef Triple::getOSName() const {
568 StringRef Triple::getEnvironmentName() const {
574 StringRef Triple::getOSAndEnvironmentName() const {
594 void Triple::getOSVersion(unsigned &Major, unsigned &Minor,
598 // Assume that the OS portion of the triple starts with the canonical name.
621 void Triple::setTriple(const Twine &Str) {
626 void Triple::setArch(ArchType Kind) {
630 void Triple::setVendor(VendorType Kind) {
634 void Triple::setOS(OSType Kind) {
638 void Triple::setEnvironment(EnvironmentType Kind) {
642 void Triple::setArchName(StringRef Str) {
644 SmallString<64> Triple;
645 Triple += Str;
646 Triple += "-";
647 Triple += getVendorName();
648 Triple += "-";
649 Triple += getOSAndEnvironmentName();
650 setTriple(Triple.str());
653 void Triple::setVendorName(StringRef Str) {
657 void Triple::setOSName(StringRef Str) {
665 void Triple::setEnvironmentName(StringRef Str) {
670 void Triple::setOSAndEnvironmentName(StringRef Str) {