LCOV - code coverage report
Current view: top level - lib/Target/AArch64/TargetInfo - AArch64TargetInfo.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 15 15 100.0 %
Date: 2017-09-14 15:23:50 Functions: 5 5 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- AArch64TargetInfo.cpp - AArch64 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 "llvm/ADT/Triple.h"
      11             : #include "llvm/Support/TargetRegistry.h"
      12             : using namespace llvm;
      13             : namespace llvm {
      14      380404 : Target &getTheAArch64leTarget() {
      15      440781 :   static Target TheAArch64leTarget;
      16      380404 :   return TheAArch64leTarget;
      17             : }
      18      380404 : Target &getTheAArch64beTarget() {
      19      440781 :   static Target TheAArch64beTarget;
      20      380404 :   return TheAArch64beTarget;
      21             : }
      22      380404 : Target &getTheARM64Target() {
      23      440781 :   static Target TheARM64Target;
      24      380404 :   return TheARM64Target;
      25             : }
      26             : } // namespace llvm
      27             : 
      28       78620 : extern "C" void LLVMInitializeAArch64TargetInfo() {
      29             :   // Now register the "arm64" name for use with "-march". We don't want it to
      30             :   // take possession of the Triple::aarch64 tag though.
      31       78620 :   TargetRegistry::RegisterTarget(getTheARM64Target(), "arm64",
      32             :                                  "ARM64 (little endian)",
      33       27270 :                                  [](Triple::ArchType) { return false; }, true);
      34             : 
      35             :   RegisterTarget<Triple::aarch64, /*HasJIT=*/true> Z(
      36      157240 :       getTheAArch64leTarget(), "aarch64", "AArch64 (little endian)");
      37             :   RegisterTarget<Triple::aarch64_be, /*HasJIT=*/true> W(
      38      157240 :       getTheAArch64beTarget(), "aarch64_be", "AArch64 (big endian)");
      39       78620 : }

Generated by: LCOV version 1.13