Add CCIfSRet calling convention predicate.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 12 Jul 2009 13:15:50 +0000 (13:15 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 12 Jul 2009 13:15:50 +0000 (13:15 +0000)
The blackfin calling convention uses a different register for sret arguments.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75417 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetCallingConv.td

index da3cbd2088678a8e4d557e97a5ba64e66c837850..777aee84eadfb543c8bd9408b6bc4e64b98d481f 100644 (file)
@@ -58,6 +58,10 @@ class CCIfNest<CCAction A> : CCIf<"ArgFlags.isNest()", A> {}
 /// the specified action.
 class CCIfSplit<CCAction A> : CCIf<"ArgFlags.isSplit()", A> {}
 
+/// CCIfSRet - If this argument is marked with the 'sret' attribute, apply
+/// the specified action.
+class CCIfSRet<CCAction A> : CCIf<"ArgFlags.isSRet()", A> {}
+
 /// CCIfNotVarArg - If the current function is not vararg - apply the action
 class CCIfNotVarArg<CCAction A> : CCIf<"!State.isVarArg()", A> {}