summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Analysis/GuardUtils.h
blob: 3b151eeafc81db2494ba16d90af036bd48222edc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//===-- GuardUtils.h - Utils for work with guards ---------------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// Utils that are used to perform analyzes related to guards and their
// conditions.
//===----------------------------------------------------------------------===//

#ifndef LLVM_ANALYSIS_GUARDUTILS_H
#define LLVM_ANALYSIS_GUARDUTILS_H

namespace llvm {

class User;

/// Returns true iff \p U has semantics of a guard.
bool isGuard(const User *U);

} // llvm

#endif // LLVM_ANALYSIS_GUARDUTILS_H

OpenPOWER on IntegriCloud