<div dir="ltr"><br>const char *Triple::getArchTypeName(ArchType Kind) {<br>  switch (Kind) {<br>  case UnknownArch: return "unknown";<br><br>  case aarch64:     return "aarch64";<br>  case aarch64_be:  return "aarch64_be";<br>  case arm:         return "arm";<br>  case armeb:       return "armeb";<br>  case bpfel:       return "bpfel";<br>  case bpfeb:       return "bpfeb";<br>  case hexagon:     return "hexagon";<br>  case mips:        return "mips";<br>  case mipsel:      return "mipsel";<br>  case mips64:      return "mips64";<br>  case mips64el:    return "mips64el";<br>  case msp430:      return "msp430";<br>  case ppc64:       return "powerpc64";<br>  case ppc64le:     return "powerpc64le";<br>  case ppc:         return "powerpc";<br>  case r600:        return "r600";<br>  case amdgcn:      return "amdgcn";<br>  case sparc:       return "sparc";<br>  case sparcv9:     return "sparcv9";<br>  case sparcel:     return "sparcel";<br>  case systemz:     return "s390x";<br>  case tce:         return "tce";<br>  case thumb:       return "thumb";<br>  case thumbeb:     return "thumbeb";<br>  case x86:         return "i386";<br>  case x86_64:      return "x86_64";<br>  case xcore:       return "xcore";<br>  case nvptx:       return "nvptx";<br>  case nvptx64:     return "nvptx64";<br>  case le32:        return "le32";<br>  case le64:        return "le64";<br>  case amdil:       return "amdil";<br>  case amdil64:     return "amdil64";<br>  case hsail:       return "hsail";<br>  case hsail64:     return "hsail64";<br>  case spir:        return "spir";<br>  case spir64:      return "spir64";<br>  case kalimba:     return "kalimba";<br>  case shave:       return "shave";<br>  case wasm32:      return "wasm32";<br>  case wasm64:      return "wasm64";<br>  }<br><br>  llvm_unreachable("Invalid ArchType!");<br>}<br><br>const char *Triple::getArchTypePrefix(ArchType Kind) {<br>  switch (Kind) {<br>  default:<br>    return nullptr;<br><br>  case aarch64:<br>  case aarch64_be:  return "aarch64";<br><br>  case arm:<br>  case armeb:<br>  case thumb:<br>  case thumbeb:     return "arm";<br><br>  case ppc64:<br>  case ppc64le:<br>  case ppc:         return "ppc";<br><br>  case mips:<br>  case mipsel:<br>  case mips64:<br>  case mips64el:    return "mips";<br><br>  case hexagon:     return "hexagon";<br><br>  case amdgcn:<br>  case r600:        return "amdgpu";<br><br>  case bpfel:<br>  case bpfeb:       return "bpf";<br><br>  case sparcv9:<br>  case sparcel:<br>  case sparc:       return "sparc";<br><br>  case systemz:     return "s390";<br><br>  case x86:<br>  case x86_64:      return "x86";<br><br>  case xcore:       return "xcore";<br><br>  case nvptx:       return "nvptx";<br>  case nvptx64:     return "nvptx";<br><br>  case le32:        return "le32";<br>  case le64:        return "le64";<br><br>  case amdil:<br>  case amdil64:     return "amdil";<br><br>  case hsail:<br>  case hsail64:     return "hsail";<br><br>  case spir:<br>  case spir64:      return "spir";<br>  case kalimba:     return "kalimba";<br>  case shave:       return "shave";<b><br>  case wasm32:      return "wasm32";<br>  case wasm64:      return "wasm64";</b><div><b>This is a prefix, should we return "wasm" instead?<br></b>  }<br>}<br><br>-- <br>         此致<br>礼<br>罗勇刚<br>Yours<br>    sincerely,<br>Yonggang Luo</div></div>