OLD | NEW |
1 //===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===// | 1 //===---- TargetInfo.cpp - Encapsulate target details -----------*- C++ -*-===// |
2 // | 2 // |
3 // The LLVM Compiler Infrastructure | 3 // The LLVM Compiler Infrastructure |
4 // | 4 // |
5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
7 // | 7 // |
8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
9 // | 9 // |
10 // These classes wrap the information about a call or function | 10 // These classes wrap the information about a call or function |
(...skipping 7037 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7048 | 7048 |
7049 // @LOCALMOD-START Emscripten | 7049 // @LOCALMOD-START Emscripten |
7050 case llvm::Triple::asmjs: | 7050 case llvm::Triple::asmjs: |
7051 return *(TheTargetCodeGenInfo = new EmscriptenTargetCodeGenInfo(Types)); | 7051 return *(TheTargetCodeGenInfo = new EmscriptenTargetCodeGenInfo(Types)); |
7052 // @LOCALMOD-END Emscripten | 7052 // @LOCALMOD-END Emscripten |
7053 | 7053 |
7054 case llvm::Triple::le32: | 7054 case llvm::Triple::le32: |
7055 return *(TheTargetCodeGenInfo = new PNaClTargetCodeGenInfo(Types)); | 7055 return *(TheTargetCodeGenInfo = new PNaClTargetCodeGenInfo(Types)); |
7056 case llvm::Triple::mips: | 7056 case llvm::Triple::mips: |
7057 case llvm::Triple::mipsel: | 7057 case llvm::Triple::mipsel: |
| 7058 if (Triple.getOS() == llvm::Triple::NaCl) |
| 7059 return *(TheTargetCodeGenInfo = new PNaClTargetCodeGenInfo(Types)); |
7058 return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, true)); | 7060 return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, true)); |
7059 | 7061 |
7060 case llvm::Triple::mips64: | 7062 case llvm::Triple::mips64: |
7061 case llvm::Triple::mips64el: | 7063 case llvm::Triple::mips64el: |
7062 return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, false)); | 7064 return *(TheTargetCodeGenInfo = new MIPSTargetCodeGenInfo(Types, false)); |
7063 | 7065 |
7064 case llvm::Triple::aarch64: | 7066 case llvm::Triple::aarch64: |
7065 case llvm::Triple::aarch64_be: { | 7067 case llvm::Triple::aarch64_be: { |
7066 AArch64ABIInfo::ABIKind Kind = AArch64ABIInfo::AAPCS; | 7068 AArch64ABIInfo::ABIKind Kind = AArch64ABIInfo::AAPCS; |
7067 if (getTarget().getABI() == "darwinpcs") | 7069 if (getTarget().getABI() == "darwinpcs") |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7169 case llvm::Triple::r600: | 7171 case llvm::Triple::r600: |
7170 return *(TheTargetCodeGenInfo = new AMDGPUTargetCodeGenInfo(Types)); | 7172 return *(TheTargetCodeGenInfo = new AMDGPUTargetCodeGenInfo(Types)); |
7171 case llvm::Triple::amdgcn: | 7173 case llvm::Triple::amdgcn: |
7172 return *(TheTargetCodeGenInfo = new AMDGPUTargetCodeGenInfo(Types)); | 7174 return *(TheTargetCodeGenInfo = new AMDGPUTargetCodeGenInfo(Types)); |
7173 case llvm::Triple::sparcv9: | 7175 case llvm::Triple::sparcv9: |
7174 return *(TheTargetCodeGenInfo = new SparcV9TargetCodeGenInfo(Types)); | 7176 return *(TheTargetCodeGenInfo = new SparcV9TargetCodeGenInfo(Types)); |
7175 case llvm::Triple::xcore: | 7177 case llvm::Triple::xcore: |
7176 return *(TheTargetCodeGenInfo = new XCoreTargetCodeGenInfo(Types)); | 7178 return *(TheTargetCodeGenInfo = new XCoreTargetCodeGenInfo(Types)); |
7177 } | 7179 } |
7178 } | 7180 } |
OLD | NEW |