[llvm-commits] CVS: llvm/lib/Target/TargetCallingConv.td

Chris Lattner sabre at nondot.org
Tue Feb 27 12:45:19 PST 2007



Changes in directory llvm/lib/Target:

TargetCallingConv.td updated: 1.1 -> 1.2
---
Log message:

implement CCMatchIfCC in terms of CCMatchIf


---
Diffs of the changes:  (+4 -4)

 TargetCallingConv.td |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/TargetCallingConv.td
diff -u llvm/lib/Target/TargetCallingConv.td:1.1 llvm/lib/Target/TargetCallingConv.td:1.2
--- llvm/lib/Target/TargetCallingConv.td:1.1	Mon Feb 26 23:57:32 2007
+++ llvm/lib/Target/TargetCallingConv.td	Tue Feb 27 14:45:02 2007
@@ -23,7 +23,8 @@
 
 /// CCMatchType - If the current argument is one of the specified types, apply
 /// Action A.
-class CCMatchType<list<ValueType> VTs, CCAction A> : CCPredicateAction<A> {
+class CCMatchType<list<ValueType> vts, CCAction A> : CCPredicateAction<A> {
+  list<ValueType> VTs = vts;
 }
 
 /// CCMatchIf - If the predicate matches, apply A.
@@ -32,9 +33,8 @@
 }
 
 /// CCMatchIfCC - Match of the current calling convention is 'CC'.
-class CCMatchIfCC<string CC, CCAction A> : CCPredicateAction<A> {
-  string CallingConv = CC;
-}
+class CCMatchIfCC<string CC, CCAction A>
+  : CCMatchIf<!strconcat("State.getCallingConv() == ", CC), A> {}
 
 /// CCAssignToReg - This action matches if there is a register in the specified
 /// list that is still available.  If so, it assigns the value to the first






More information about the llvm-commits mailing list