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

          Line data    Source code
       1             : //===-- TargetIntrinsicInfo.cpp - Target Instruction Information ----------===//
       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             : // This file implements the TargetIntrinsicInfo class.
      11             : //
      12             : //===----------------------------------------------------------------------===//
      13             : 
      14             : #include "llvm/Target/TargetIntrinsicInfo.h"
      15             : #include "llvm/ADT/StringMap.h"
      16             : #include "llvm/IR/Function.h"
      17             : using namespace llvm;
      18             : 
      19        2059 : TargetIntrinsicInfo::TargetIntrinsicInfo() {
      20        2059 : }
      21             : 
      22        2046 : TargetIntrinsicInfo::~TargetIntrinsicInfo() {
      23        2046 : }
      24             : 
      25       12645 : unsigned TargetIntrinsicInfo::getIntrinsicID(const Function *F) const {
      26       12645 :   const ValueName *ValName = F->getValueName();
      27       12645 :   if (!ValName)
      28             :     return 0;
      29       37935 :   return lookupName(ValName->getKeyData(), ValName->getKeyLength());
      30             : }

Generated by: LCOV version 1.13