summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-26 21:35:52 +0000
committerChris Lattner <sabre@nondot.org>2010-08-26 21:35:52 +0000
commitdee1da0dc3b39eaafe26d51d3b069093de7aed09 (patch)
tree2dc6fcd66ea676325139e997db34ca25c2ae2bb9 /include
parentb0fa9932ccf9760e7b20ab4233799b4f9f5e0ba5 (diff)
downloadllvm-dee1da0dc3b39eaafe26d51d3b069093de7aed09.tar.gz
llvm-dee1da0dc3b39eaafe26d51d3b069093de7aed09.tar.bz2
llvm-dee1da0dc3b39eaafe26d51d3b069093de7aed09.tar.xz
add m_BitCast for matching a bitcast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/PatternMatch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h
index f02bc347a1..bee6768637 100644
--- 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>