diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-27 20:45:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-27 20:45:02 +0000 |
commit | f45803012c3d6b3ea28cc5d8a43d6c3ffda70249 (patch) | |
tree | c9d364af770c53cbc84cec72d21d3ea5907ee177 | |
parent | 8bcc4aea475f1b031659003295fe496a89bed790 (diff) |
implement CCMatchIfCC in terms of CCMatchIf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/TargetCallingConv.td | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Target/TargetCallingConv.td b/lib/Target/TargetCallingConv.td index 3dcd7458f8..8a619af621 100644 --- a/lib/Target/TargetCallingConv.td +++ b/lib/Target/TargetCallingConv.td @@ -23,7 +23,8 @@ class CCPredicateAction<CCAction A> : CCAction { /// 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 @@ class CCMatchIf<string predicate, CCAction A> : CCPredicateAction<A> { } /// 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 |