From 62247f62cecb916c74fcf15b96bfe86045c74f2c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 28 Feb 2007 05:29:33 +0000 Subject: [PATCH] rename some CCActions, add CCIfInReg git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34725 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/TargetCallingConv.td | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/Target/TargetCallingConv.td b/lib/Target/TargetCallingConv.td index 8a619af621b..edcd6dd70e8 100644 --- a/lib/Target/TargetCallingConv.td +++ b/lib/Target/TargetCallingConv.td @@ -21,20 +21,25 @@ class CCPredicateAction : CCAction { CCAction SubAction = A; } -/// CCMatchType - If the current argument is one of the specified types, apply +/// CCIfType - If the current argument is one of the specified types, apply /// Action A. -class CCMatchType vts, CCAction A> : CCPredicateAction { +class CCIfType vts, CCAction A> : CCPredicateAction { list VTs = vts; } -/// CCMatchIf - If the predicate matches, apply A. -class CCMatchIf : CCPredicateAction { +/// CCIf - If the predicate matches, apply A. +class CCIf : CCPredicateAction { string Predicate = predicate; } -/// CCMatchIfCC - Match of the current calling convention is 'CC'. -class CCMatchIfCC - : CCMatchIf {} +/// CCIfCC - Match of the current calling convention is 'CC'. +class CCIfCC + : CCIf {} + +/// CCIfInReg - If this argument is marked with the 'inreg' attribute, apply +/// the specified action. +class CCIfInReg : CCIf<"ArgFlags & 2", 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 -- 2.34.1