add m_BitCast for matching a bitcast.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Aug 2010 21:35:52 +0000 (21:35 +0000)
committerChris 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

index f02bc347a17ec102db137b560247f3359cb05899..bee676863780e107257ada795b0a2dcc4a4a2a8a 100644 (file)
@@ -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>