/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/Sparc/TargetInfo/SparcTargetInfo.cpp
Line | Count | Source |
1 | | //===-- SparcTargetInfo.cpp - Sparc Target Implementation -----------------===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | |
9 | | #include "TargetInfo/SparcTargetInfo.h" |
10 | | #include "llvm/Support/TargetRegistry.h" |
11 | | using namespace llvm; |
12 | | |
13 | 674k | Target &llvm::getTheSparcTarget() { |
14 | 674k | static Target TheSparcTarget; |
15 | 674k | return TheSparcTarget; |
16 | 674k | } |
17 | 674k | Target &llvm::getTheSparcV9Target() { |
18 | 674k | static Target TheSparcV9Target; |
19 | 674k | return TheSparcV9Target; |
20 | 674k | } |
21 | 674k | Target &llvm::getTheSparcelTarget() { |
22 | 674k | static Target TheSparcelTarget; |
23 | 674k | return TheSparcelTarget; |
24 | 674k | } |
25 | | |
26 | 157k | extern "C" void LLVMInitializeSparcTargetInfo() { |
27 | 157k | RegisterTarget<Triple::sparc, /*HasJIT=*/true> X(getTheSparcTarget(), "sparc", |
28 | 157k | "Sparc", "Sparc"); |
29 | 157k | RegisterTarget<Triple::sparcv9, /*HasJIT=*/true> Y( |
30 | 157k | getTheSparcV9Target(), "sparcv9", "Sparc V9", "Sparc"); |
31 | 157k | RegisterTarget<Triple::sparcel, /*HasJIT=*/true> Z( |
32 | 157k | getTheSparcelTarget(), "sparcel", "Sparc LE", "Sparc"); |
33 | 157k | } |