add m_BitCast for matching a bitcast.

llvm-svn: 112222
This commit is contained in:
Chris Lattner 2010-08-26 21:35:52 +00:00
parent 2976d00adb
commit e14ae4ec24
1 changed files with 7 additions and 0 deletions

View 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>