1 //===-- GuardUtils.cpp - Utils for work with guards -------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
9 // Utils that are used to perform analyzes related to guards and their
11 //===----------------------------------------------------------------------===//
13 #include "llvm/Analysis/GuardUtils.h"
14 #include "llvm/IR/PatternMatch.h"
18 bool llvm::isGuard(const User
*U
) {
19 using namespace llvm::PatternMatch
;
20 return match(U
, m_Intrinsic
<Intrinsic::experimental_guard
>());