Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/X86/TargetInfo/X86TargetInfo.cpp
Line
Count
Source
1
//===-- X86TargetInfo.cpp - X86 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/X86TargetInfo.h"
10
#include "llvm/Support/TargetRegistry.h"
11
using namespace llvm;
12
13
675k
Target &llvm::getTheX86_32Target() {
14
675k
  static Target TheX86_32Target;
15
675k
  return TheX86_32Target;
16
675k
}
17
675k
Target &llvm::getTheX86_64Target() {
18
675k
  static Target TheX86_64Target;
19
675k
  return TheX86_64Target;
20
675k
}
21
22
157k
extern "C" void LLVMInitializeX86TargetInfo() {
23
157k
  RegisterTarget<Triple::x86, /*HasJIT=*/true> X(
24
157k
      getTheX86_32Target(), "x86", "32-bit X86: Pentium-Pro and above", "X86");
25
157k
26
157k
  RegisterTarget<Triple::x86_64, /*HasJIT=*/true> Y(
27
157k
      getTheX86_64Target(), "x86-64", "64-bit X86: EM64T and AMD64", "X86");
28
157k
}