[llvm] r287684 - [Triple] Add Facebook vendor

Shoaib Meenai via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 22 11:36:27 PST 2016


Author: smeenai
Date: Tue Nov 22 13:36:26 2016
New Revision: 287684

URL: http://llvm.org/viewvc/llvm-project?rev=287684&view=rev
Log:
[Triple] Add Facebook vendor

Add a compiler vendor for Facebook, to enable future vendor-specific
behavior.

Differential Revision: https://reviews.llvm.org/D25136

Modified:
    llvm/trunk/include/llvm/ADT/Triple.h
    llvm/trunk/lib/Support/Triple.cpp

Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=287684&r1=287683&r2=287684&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Tue Nov 22 13:36:26 2016
@@ -130,6 +130,7 @@ public:
     SCEI,
     BGP,
     BGQ,
+    Facebook,
     Freescale,
     IBM,
     ImaginationTechnologies,

Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=287684&r1=287683&r2=287684&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue Nov 22 13:36:26 2016
@@ -152,6 +152,7 @@ StringRef Triple::getVendorTypeName(Vend
   case SCEI: return "scei";
   case BGP: return "bgp";
   case BGQ: return "bgq";
+  case Facebook: return "facebook";
   case Freescale: return "fsl";
   case IBM: return "ibm";
   case ImaginationTechnologies: return "img";
@@ -434,6 +435,7 @@ static Triple::VendorType parseVendor(St
     .Case("scei", Triple::SCEI)
     .Case("bgp", Triple::BGP)
     .Case("bgq", Triple::BGQ)
+    .Case("facebook", Triple::Facebook)
     .Case("fsl", Triple::Freescale)
     .Case("ibm", Triple::IBM)
     .Case("img", Triple::ImaginationTechnologies)




More information about the llvm-commits mailing list