projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0fa993
)
add m_BitCast for matching a bitcast.
author
Chris Lattner
<sabre@nondot.org>
Thu, 26 Aug 2010 21:35:52 +0000
(21:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 26 Aug 2010 21:35:52 +0000
(21:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112222
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/PatternMatch.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/PatternMatch.h
b/include/llvm/Support/PatternMatch.h
index f02bc347a17ec102db137b560247f3359cb05899..bee676863780e107257ada795b0a2dcc4a4a2a8a 100644
(file)
--- a/
include/llvm/Support/PatternMatch.h
+++ b/
include/llvm/Support/PatternMatch.h
@@
-453,6
+453,13
@@
struct CastClass_match {
}
};
+/// m_BitCast
+template<typename OpTy>
+inline CastClass_match<OpTy, Instruction::BitCast>
+m_BitCast(const OpTy &Op) {
+ return CastClass_match<OpTy, Instruction::BitCast>(Op);
+}
+
/// m_PtrToInt
template<typename OpTy>
inline CastClass_match<OpTy, Instruction::PtrToInt>