Allow "let AddedCost = n in" to increase pattern complexity.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27834 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/Target.td b/lib/Target/Target.td
index 4c84674..4d6c80c 100644
--- a/lib/Target/Target.td
+++ b/lib/Target/Target.td
@@ -144,6 +144,9 @@
// code.
list<Predicate> Predicates = [];
+ // Added cost passed onto matching pattern.
+ int AddedCost = 0;
+
// These bits capture information about the high-level semantics of the
// instruction.
bit isReturn = 0; // Is this instruction a return instruction?