diff options
author | Stephen Lin <stephenwlin@gmail.com> | 2013-07-26 17:55:00 +0000 |
---|---|---|
committer | Stephen Lin <stephenwlin@gmail.com> | 2013-07-26 17:55:00 +0000 |
commit | 3b6bb79578bcc09b6a588af488da4f6e6d958f01 (patch) | |
tree | 09e3f64816aee539acfb2159da3c5d8c5bedb3f3 /include | |
parent | d4afa8bbabd83e2b68afcc61e44fadb9e7964b07 (diff) | |
download | external_llvm-3b6bb79578bcc09b6a588af488da4f6e6d958f01.zip external_llvm-3b6bb79578bcc09b6a588af488da4f6e6d958f01.tar.gz external_llvm-3b6bb79578bcc09b6a588af488da4f6e6d958f01.tar.bz2 |
Correct case of m_UIToFp to m_UIToFP to match instruction name, add m_SIToFP for consistency.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@187225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/PatternMatch.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index 95d9d78..35a9c07 100644 --- a/include/llvm/Support/PatternMatch.h +++ b/include/llvm/Support/PatternMatch.h @@ -696,10 +696,17 @@ m_ZExt(const OpTy &Op) { /// m_UIToFP template<typename OpTy> inline CastClass_match<OpTy, Instruction::UIToFP> -m_UIToFp(const OpTy &Op) { +m_UIToFP(const OpTy &Op) { return CastClass_match<OpTy, Instruction::UIToFP>(Op); } +/// m_SIToFP +template<typename OpTy> +inline CastClass_match<OpTy, Instruction::SIToFP> +m_SIToFP(const OpTy &Op) { + return CastClass_match<OpTy, Instruction::SIToFP>(Op); +} + //===----------------------------------------------------------------------===// // Matchers for unary operators // |