Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/Mips/TargetInfo/MipsTargetInfo.cpp
Line
Count
Source
1
//===-- MipsTargetInfo.cpp - Mips 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/MipsTargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
674k
Target &llvm::getTheMipsTarget() {
14
674k
  static Target TheMipsTarget;
15
674k
  return TheMipsTarget;
16
674k
}
17
674k
Target &llvm::getTheMipselTarget() {
18
674k
  static Target TheMipselTarget;
19
674k
  return TheMipselTarget;
20
674k
}
21
674k
Target &llvm::getTheMips64Target() {
22
674k
  static Target TheMips64Target;
23
674k
  return TheMips64Target;
24
674k
}
25
674k
Target &llvm::getTheMips64elTarget() {
26
674k
  static Target TheMips64elTarget;
27
674k
  return TheMips64elTarget;
28
674k
}
29
30
157k
extern "C" void LLVMInitializeMipsTargetInfo() {
31
157k
  RegisterTarget<Triple::mips,
32
157k
                 /*HasJIT=*/true>
33
157k
      X(getTheMipsTarget(), "mips", "MIPS (32-bit big endian)", "Mips");
34
157k
35
157k
  RegisterTarget<Triple::mipsel,
36
157k
                 /*HasJIT=*/true>
37
157k
      Y(getTheMipselTarget(), "mipsel", "MIPS (32-bit little endian)", "Mips");
38
157k
39
157k
  RegisterTarget<Triple::mips64,
40
157k
                 /*HasJIT=*/true>
41
157k
      A(getTheMips64Target(), "mips64", "MIPS (64-bit big endian)", "Mips");
42
157k
43
157k
  RegisterTarget<Triple::mips64el,
44
157k
                 /*HasJIT=*/true>
45
157k
      B(getTheMips64elTarget(), "mips64el", "MIPS (64-bit little endian)",
46
157k
        "Mips");
47
157k
}