[InstCombine] Signed saturation patterns
[llvm-core.git] / include / llvm / Support / ReverseIteration.h
blob5e0238d81c4c65beca7efc271b19dc285e143cc0
1 #ifndef LLVM_SUPPORT_REVERSEITERATION_H
2 #define LLVM_SUPPORT_REVERSEITERATION_H
4 #include "llvm/Config/abi-breaking.h"
5 #include "llvm/Support/PointerLikeTypeTraits.h"
7 namespace llvm {
9 template<class T = void *>
10 bool shouldReverseIterate() {
11 #if LLVM_ENABLE_REVERSE_ITERATION
12 return detail::IsPointerLike<T>::value;
13 #else
14 return false;
15 #endif
19 #endif