[PATCH] D122003: [Triple] Add support for more archs in `getArchTypeForLLVMName`

Antonio Frighetto via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 18 06:45:25 PDT 2022


antoniofrighetto created this revision.
antoniofrighetto added reviewers: rengolin, t.p.northover.
Herald added subscribers: dexonsmith, pengfei, hiraditya.
Herald added a project: All.
antoniofrighetto requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add support for `i386`, `s390x` in `Triple::getArchTypeForLLVMName`, and fix `x86_64` name.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D122003

Files:
  llvm/lib/Support/Triple.cpp


Index: llvm/lib/Support/Triple.cpp
===================================================================
--- llvm/lib/Support/Triple.cpp
+++ llvm/lib/Support/Triple.cpp
@@ -317,13 +317,15 @@
     .Case("sparc", sparc)
     .Case("sparcel", sparcel)
     .Case("sparcv9", sparcv9)
+    .Case("s390x", systemz)
     .Case("systemz", systemz)
     .Case("tce", tce)
     .Case("tcele", tcele)
     .Case("thumb", thumb)
     .Case("thumbeb", thumbeb)
     .Case("x86", x86)
-    .Case("x86-64", x86_64)
+    .Case("i386", x86)
+    .Case("x86_64", x86_64)
     .Case("xcore", xcore)
     .Case("nvptx", nvptx)
     .Case("nvptx64", nvptx64)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122003.416482.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/4c6b14b7/attachment.bin>


More information about the llvm-commits mailing list