diff options
Diffstat (limited to 'clang-r344140b/include/llvm/Analysis/GuardUtils.h')
| -rw-r--r-- | clang-r344140b/include/llvm/Analysis/GuardUtils.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/clang-r344140b/include/llvm/Analysis/GuardUtils.h b/clang-r344140b/include/llvm/Analysis/GuardUtils.h new file mode 100644 index 00000000..3b151eea --- /dev/null +++ b/clang-r344140b/include/llvm/Analysis/GuardUtils.h @@ -0,0 +1,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 + |
