[llvm-commits] [llvm] r112222 - /llvm/trunk/include/llvm/Support/PatternMatch.h

Chris Lattner sabre at nondot.org
Thu Aug 26 14:35:52 PDT 2010


Author: lattner
Date: Thu Aug 26 16:35:52 2010
New Revision: 112222

URL: http://llvm.org/viewvc/llvm-project?rev=112222&view=rev
Log:
add m_BitCast for matching a bitcast.

Modified:
    llvm/trunk/include/llvm/Support/PatternMatch.h

Modified: llvm/trunk/include/llvm/Support/PatternMatch.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/PatternMatch.h?rev=112222&r1=112221&r2=112222&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/PatternMatch.h (original)
+++ llvm/trunk/include/llvm/Support/PatternMatch.h Thu Aug 26 16:35:52 2010
@@ -453,6 +453,13 @@
   }
 };
 
+/// 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>





More information about the llvm-commits mailing list