Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/PowerPC/TargetInfo/PowerPCTargetInfo.cpp
Line
Count
Source
1
//===-- PowerPCTargetInfo.cpp - PowerPC 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/PowerPCTargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
577k
Target &llvm::getThePPC32Target() {
14
577k
  static Target ThePPC32Target;
15
577k
  return ThePPC32Target;
16
577k
}
17
577k
Target &llvm::getThePPC64Target() {
18
577k
  static Target ThePPC64Target;
19
577k
  return ThePPC64Target;
20
577k
}
21
577k
Target &llvm::getThePPC64LETarget() {
22
577k
  static Target ThePPC64LETarget;
23
577k
  return ThePPC64LETarget;
24
577k
}
25
26
157k
extern "C" void LLVMInitializePowerPCTargetInfo() {
27
157k
  RegisterTarget<Triple::ppc, /*HasJIT=*/true> X(getThePPC32Target(), "ppc32",
28
157k
                                                 "PowerPC 32", "PPC");
29
157k
30
157k
  RegisterTarget<Triple::ppc64, /*HasJIT=*/true> Y(getThePPC64Target(), "ppc64",
31
157k
                                                   "PowerPC 64", "PPC");
32
157k
33
157k
  RegisterTarget<Triple::ppc64le, /*HasJIT=*/true> Z(
34
157k
      getThePPC64LETarget(), "ppc64le", "PowerPC 64 LE", "PPC");
35
157k
}