summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-12-09 17:50:10 +0000
committerJuergen Ributzka <juergen@apple.com>2014-12-09 17:50:10 +0000
commit8bda738221074ad5ba84b5a1d2f182ef4d630961 (patch)
tree224dd377dada3c20fa21453bc88c5e7e28d2efdd /llvm/include
parent9cceddd074ffd48dcc612d49f7b55fe6e32a3a41 (diff)
downloadbcm5719-llvm-8bda738221074ad5ba84b5a1d2f182ef4d630961.tar.gz
bcm5719-llvm-8bda738221074ad5ba84b5a1d2f182ef4d630961.zip
[CGP] Rewrite pattern match for splitBranchCondition to work with Values instead.
Rewrite the pattern match code to work also with Values instead with Instructions only. Also remove the no longer need matcher (m_Instruction). llvm-svn: 223797
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/IR/PatternMatch.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/include/llvm/IR/PatternMatch.h b/llvm/include/llvm/IR/PatternMatch.h
index c9597c19aa0..4963997a773 100644
--- a/llvm/include/llvm/IR/PatternMatch.h
+++ b/llvm/include/llvm/IR/PatternMatch.h
@@ -68,10 +68,6 @@ struct class_match {
/// m_Value() - Match an arbitrary value and ignore it.
inline class_match<Value> m_Value() { return class_match<Value>(); }
-/// m_Instruction() - Match an arbitrary instruction and ignore it.
-inline class_match<Instruction> m_Instruction() {
- return class_match<Instruction>();
-}
/// m_BinOp() - Match an arbitrary binary operation and ignore it.
inline class_match<BinaryOperator> m_BinOp() {
return class_match<BinaryOperator>();
@@ -311,9 +307,6 @@ struct bind_ty {
/// m_Value - Match a value, capturing it if we match.
inline bind_ty<Value> m_Value(Value *&V) { return V; }
-/// m_Instruction - Match a instruction, capturing it if we match.
-inline bind_ty<Instruction> m_Instruction(Instruction *&I) { return I; }
-
/// m_BinOp - Match a instruction, capturing it if we match.
inline bind_ty<BinaryOperator> m_BinOp(BinaryOperator *&I) { return I; }
OpenPOWER on IntegriCloud