LCOV - code coverage report
Current view: top level - lib/Target/ARM/TargetInfo - ARMTargetInfo.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 18 18 100.0 %
Date: 2018-07-13 00:08:38 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- ARMTargetInfo.cpp - ARM Target Implementation ---------------------===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : 
      10             : #include "MCTargetDesc/ARMMCTargetDesc.h"
      11             : #include "llvm/Support/TargetRegistry.h"
      12             : using namespace llvm;
      13             : 
      14      585730 : Target &llvm::getTheARMLETarget() {
      15      670677 :   static Target TheARMLETarget;
      16      585730 :   return TheARMLETarget;
      17             : }
      18      585730 : Target &llvm::getTheARMBETarget() {
      19      670677 :   static Target TheARMBETarget;
      20      585730 :   return TheARMBETarget;
      21             : }
      22      585730 : Target &llvm::getTheThumbLETarget() {
      23      670677 :   static Target TheThumbLETarget;
      24      585730 :   return TheThumbLETarget;
      25             : }
      26      585730 : Target &llvm::getTheThumbBETarget() {
      27      670677 :   static Target TheThumbBETarget;
      28      585730 :   return TheThumbBETarget;
      29             : }
      30             : 
      31      112486 : extern "C" void LLVMInitializeARMTargetInfo() {
      32             :   RegisterTarget<Triple::arm, /*HasJIT=*/true> X(getTheARMLETarget(), "arm",
      33      112486 :                                                  "ARM", "ARM");
      34             :   RegisterTarget<Triple::armeb, /*HasJIT=*/true> Y(getTheARMBETarget(), "armeb",
      35      112486 :                                                    "ARM (big endian)", "ARM");
      36             : 
      37             :   RegisterTarget<Triple::thumb, /*HasJIT=*/true> A(getTheThumbLETarget(),
      38      112486 :                                                    "thumb", "Thumb", "ARM");
      39             :   RegisterTarget<Triple::thumbeb, /*HasJIT=*/true> B(
      40      112486 :       getTheThumbBETarget(), "thumbeb", "Thumb (big endian)", "ARM");
      41      112486 : }

Generated by: LCOV version 1.13