diff options
author | Chris Lattner <sabre@nondot.org> | 2010-08-26 21:35:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-08-26 21:35:52 +0000 |
commit | ec4219f60409ab6940f65673c252e1a63eec18b9 (patch) | |
tree | 2dc6fcd66ea676325139e997db34ca25c2ae2bb9 /include | |
parent | 4659ad5ea0571106af47acb0305e52cf0135337a (diff) | |
download | external_llvm-ec4219f60409ab6940f65673c252e1a63eec18b9.zip external_llvm-ec4219f60409ab6940f65673c252e1a63eec18b9.tar.gz external_llvm-ec4219f60409ab6940f65673c252e1a63eec18b9.tar.bz2 |
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index f02bc34..bee6768 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> |