LLVM
8.0.1
lib
Analysis
GuardUtils.cpp
Go to the documentation of this file.
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
bool
llvm::isGuard
(
const
User
*U) {
19
using namespace
llvm::PatternMatch
;
20
return
match
(U, m_Intrinsic<Intrinsic::experimental_guard>());
21
}
llvm
This class represents lattice values for constants.
Definition:
AllocatorList.h:24
llvm::User
Definition:
User.h:45
llvm::PatternMatch::match
bool match(Val *V, const Pattern &P)
Definition:
PatternMatch.h:48
GuardUtils.h
llvm::PatternMatch
Definition:
PatternMatch.h:46
llvm::isGuard
bool isGuard(const User *U)
Returns true iff U has semantics of a guard.
Definition:
GuardUtils.cpp:18
PatternMatch.h
Generated on Sun Dec 20 2020 13:53:43 for LLVM by
1.8.13