Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: lib/CodeGen/TargetInfo.cpp

Issue 1208073002: [MIPS] Add support for direct-to-nacl in Clang (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-clang.git@master
Patch Set: Updated change. Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « lib/Basic/Targets.cpp ('k') | lib/Driver/ToolChains.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « lib/Basic/Targets.cpp ('k') | lib/Driver/ToolChains.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698