annotate include/llvm/Support/ReverseIteration.h @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
1 #ifndef LLVM_SUPPORT_REVERSEITERATION_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
2 #define LLVM_SUPPORT_REVERSEITERATION_H
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
3
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
4 #include "llvm/Config/abi-breaking.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
5 #include "llvm/Support/PointerLikeTypeTraits.h"
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
6
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
7 namespace llvm {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
8
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
9 template<class T = void *>
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
10 bool shouldReverseIterate() {
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
11 #if LLVM_ENABLE_REVERSE_ITERATION
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
12 return detail::IsPointerLike<T>::value;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
13 #else
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
14 return false;
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
15 #endif
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
16 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
17
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
18 }
803732b1fca8 LLVM 5.0
kono
parents:
diff changeset
19 #endif