Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/RISCV/TargetInfo/RISCVTargetInfo.cpp
Line
Count
Source
1
//===-- RISCVTargetInfo.cpp - RISCV 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/RISCVTargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
577k
Target &llvm::getTheRISCV32Target() {
14
577k
  static Target TheRISCV32Target;
15
577k
  return TheRISCV32Target;
16
577k
}
17
18
577k
Target &llvm::getTheRISCV64Target() {
19
577k
  static Target TheRISCV64Target;
20
577k
  return TheRISCV64Target;
21
577k
}
22
23
157k
extern "C" void LLVMInitializeRISCVTargetInfo() {
24
157k
  RegisterTarget<Triple::riscv32> X(getTheRISCV32Target(), "riscv32",
25
157k
                                    "32-bit RISC-V", "RISCV");
26
157k
  RegisterTarget<Triple::riscv64> Y(getTheRISCV64Target(), "riscv64",
27
157k
                                    "64-bit RISC-V", "RISCV");
28
157k
}