Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/NVPTX/TargetInfo/NVPTXTargetInfo.cpp
Line
Count
Source
1
//===-- NVPTXTargetInfo.cpp - NVPTX 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/NVPTXTargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
471k
Target &llvm::getTheNVPTXTarget32() {
14
471k
  static Target TheNVPTXTarget32;
15
471k
  return TheNVPTXTarget32;
16
471k
}
17
471k
Target &llvm::getTheNVPTXTarget64() {
18
471k
  static Target TheNVPTXTarget64;
19
471k
  return TheNVPTXTarget64;
20
471k
}
21
22
157k
extern "C" void LLVMInitializeNVPTXTargetInfo() {
23
157k
  RegisterTarget<Triple::nvptx> X(getTheNVPTXTarget32(), "nvptx",
24
157k
                                  "NVIDIA PTX 32-bit", "NVPTX");
25
157k
  RegisterTarget<Triple::nvptx64> Y(getTheNVPTXTarget64(), "nvptx64",
26
157k
                                    "NVIDIA PTX 64-bit", "NVPTX");
27
157k
}