summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-07-26 17:55:00 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-07-26 17:55:00 +0000
commit4ef138722191c16ee7ed4ce52f29bc44c1f7bfc8 (patch)
treea1b5ddf101a90a08012482e9fdf8420d98c510b3 /llvm/include
parent299b8782b2af6d91d8b18ab9d339e5bd3ab17919 (diff)
downloadbcm5719-llvm-4ef138722191c16ee7ed4ce52f29bc44c1f7bfc8.tar.gz
bcm5719-llvm-4ef138722191c16ee7ed4ce52f29bc44c1f7bfc8.zip
Correct case of m_UIToFp to m_UIToFP to match instruction name, add m_SIToFP for consistency.
llvm-svn: 187225
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/PatternMatch.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/PatternMatch.h b/llvm/include/llvm/Support/PatternMatch.h
index 95d9d782ec0..35a9c07b75c 100644
--- a/llvm/include/llvm/Support/PatternMatch.h
+++ b/llvm/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
//
OpenPOWER on IntegriCloud