[llvm] 060ff66 - Add support for more archs in `Triple::getArchTypeForLLVMName`

Renato Golin via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 02:44:28 PDT 2022


Author: Antonio Frighetto
Date: 2022-04-06T10:43:31+01:00
New Revision: 060ff6633708c918eda7e36d3b8c548b27b48928

URL: https://github.com/llvm/llvm-project/commit/060ff6633708c918eda7e36d3b8c548b27b48928
DIFF: https://github.com/llvm/llvm-project/commit/060ff6633708c918eda7e36d3b8c548b27b48928.diff

LOG: Add support for more archs in `Triple::getArchTypeForLLVMName`

Add support for i386, s390x in Triple::getArchTypeForLLVMName.

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

Added: 
    

Modified: 
    llvm/lib/Support/Triple.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index ff238e0e00b5d..d70a4210cbff2 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -337,12 +337,14 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
     .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("i386", x86)
     .Case("x86-64", x86_64)
     .Case("xcore", xcore)
     .Case("nvptx", nvptx)


        


More information about the llvm-commits mailing list