LCOV - code coverage report
Current view: top level - lib/Analysis - GuardUtils.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 2 2 100.0 %
Date: 2018-10-20 13:21:21 Functions: 1 1 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- GuardUtils.cpp - Utils for work with guards -------------*- C++ -*-===//
       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             : // Utils that are used to perform analyzes related to guards and their
      10             : // conditions.
      11             : //===----------------------------------------------------------------------===//
      12             : 
      13             : #include "llvm/Analysis/GuardUtils.h"
      14             : #include "llvm/IR/PatternMatch.h"
      15             : 
      16             : using namespace llvm;
      17             : 
      18     5764623 : bool llvm::isGuard(const User *U) {
      19             :   using namespace llvm::PatternMatch;
      20     5764623 :   return match(U, m_Intrinsic<Intrinsic::experimental_guard>());
      21             : }

Generated by: LCOV version 1.13