[PATCH] D12540: Add Myriad into enum VendorType.

Douglas Katzman via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 14:43:11 PDT 2015


dougk created this revision.
dougk added reviewers: jyknight, chandlerc.
dougk added a subscriber: llvm-commits.

Myriad isn't really the vendor, but this maintains compatibility with an existing gcc triple.
Doing it any other way (such as spelling Movidius as "myriad") is just asking for trouble.

http://reviews.llvm.org/D12540

Files:
  include/llvm/ADT/Triple.h
  lib/Support/Triple.cpp

Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -144,6 +144,7 @@
   case MipsTechnologies: return "mti";
   case NVIDIA: return "nvidia";
   case CSR: return "csr";
+  case Myriad: return "myriad";
   }
 
   llvm_unreachable("Invalid VendorType!");
@@ -398,6 +399,7 @@
     .Case("mti", Triple::MipsTechnologies)
     .Case("nvidia", Triple::NVIDIA)
     .Case("csr", Triple::CSR)
+    .Case("myriad", Triple::Myriad)
     .Default(Triple::UnknownVendor);
 }
 
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h
+++ include/llvm/ADT/Triple.h
@@ -124,7 +124,8 @@
     MipsTechnologies,
     NVIDIA,
     CSR,
-    LastVendorType = CSR
+    Myriad,
+    LastVendorType = Myriad
   };
   enum OSType {
     UnknownOS,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12540.33730.patch
Type: text/x-patch
Size: 902 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150901/36491b01/attachment.bin>


More information about the llvm-commits mailing list