summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-07-12 13:15:50 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-07-12 13:15:50 +0000
commitdb953aacc7283c904890bf0495333c35b8b29c24 (patch)
tree40b5265b977b131e80697d387840c8f5662e2698
parent69208f0f9e111d88c2d290c5a1f98db8b39bd6b0 (diff)
downloadbcm5719-llvm-db953aacc7283c904890bf0495333c35b8b29c24.tar.gz
bcm5719-llvm-db953aacc7283c904890bf0495333c35b8b29c24.zip
Add CCIfSRet calling convention predicate.
The blackfin calling convention uses a different register for sret arguments. llvm-svn: 75417
-rw-r--r--llvm/include/llvm/Target/TargetCallingConv.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetCallingConv.td b/llvm/include/llvm/Target/TargetCallingConv.td
index da3cbd20886..777aee84ead 100644
--- a/llvm/include/llvm/Target/TargetCallingConv.td
+++ b/llvm/include/llvm/Target/TargetCallingConv.td
@@ -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> {}
OpenPOWER on IntegriCloud