Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/ARM/TargetInfo/ARMTargetInfo.cpp
Line
Count
Source
1
//===-- ARMTargetInfo.cpp - ARM 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/ARMTargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
770k
Target &llvm::getTheARMLETarget() {
14
770k
  static Target TheARMLETarget;
15
770k
  return TheARMLETarget;
16
770k
}
17
770k
Target &llvm::getTheARMBETarget() {
18
770k
  static Target TheARMBETarget;
19
770k
  return TheARMBETarget;
20
770k
}
21
770k
Target &llvm::getTheThumbLETarget() {
22
770k
  static Target TheThumbLETarget;
23
770k
  return TheThumbLETarget;
24
770k
}
25
770k
Target &llvm::getTheThumbBETarget() {
26
770k
  static Target TheThumbBETarget;
27
770k
  return TheThumbBETarget;
28
770k
}
29
30
157k
extern "C" void LLVMInitializeARMTargetInfo() {
31
157k
  RegisterTarget<Triple::arm, /*HasJIT=*/true> X(getTheARMLETarget(), "arm",
32
157k
                                                 "ARM", "ARM");
33
157k
  RegisterTarget<Triple::armeb, /*HasJIT=*/true> Y(getTheARMBETarget(), "armeb",
34
157k
                                                   "ARM (big endian)", "ARM");
35
157k
36
157k
  RegisterTarget<Triple::thumb, /*HasJIT=*/true> A(getTheThumbLETarget(),
37
157k
                                                   "thumb", "Thumb", "ARM");
38
157k
  RegisterTarget<Triple::thumbeb, /*HasJIT=*/true> B(
39
157k
      getTheThumbBETarget(), "thumbeb", "Thumb (big endian)", "ARM");
40
157k
}