blob: 3b151eeafc81db2494ba16d90af036bd48222edc [file] [log] [blame]
Andrew Scull0372a572018-11-16 15:47:06 +00001//===-- GuardUtils.h - 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#ifndef LLVM_ANALYSIS_GUARDUTILS_H
14#define LLVM_ANALYSIS_GUARDUTILS_H
15
16namespace llvm {
17
18class User;
19
20/// Returns true iff \p U has semantics of a guard.
21bool isGuard(const User *U);
22
23} // llvm
24
25#endif // LLVM_ANALYSIS_GUARDUTILS_H
26