From e14ae4ec244b462c12117ba16cfea6afef66cd8d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 26 Aug 2010 21:35:52 +0000 Subject: [PATCH] add m_BitCast for matching a bitcast. llvm-svn: 112222 --- llvm/include/llvm/Support/PatternMatch.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/include/llvm/Support/PatternMatch.h b/llvm/include/llvm/Support/PatternMatch.h index f02bc347a17e..bee676863780 100644 --- a/llvm/include/llvm/Support/PatternMatch.h +++ b/llvm/include/llvm/Support/PatternMatch.h @@ -453,6 +453,13 @@ struct CastClass_match { } }; +/// m_BitCast +template +inline CastClass_match +m_BitCast(const OpTy &Op) { + return CastClass_match(Op); +} + /// m_PtrToInt template inline CastClass_match