summaryrefslogtreecommitdiff
path: root/include/llvm/Target/TargetCallingConv.td
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
commitee787ff01a09e8d47b4ae179fedc1622df441612 (patch)
treeda58cc01e42e7e4c0f5ccfabbb77d80a2651b9d0 /include/llvm/Target/TargetCallingConv.td
parent29fd056d8106c27fb0d9e4602c4d7fbd539219c6 (diff)
downloadllvm-ee787ff01a09e8d47b4ae179fedc1622df441612.tar.gz
llvm-ee787ff01a09e8d47b4ae179fedc1622df441612.tar.bz2
llvm-ee787ff01a09e8d47b4ae179fedc1622df441612.tar.xz
Add CCIfSRet calling convention predicate.
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
Diffstat (limited to 'include/llvm/Target/TargetCallingConv.td')
-rw-r--r--include/llvm/Target/TargetCallingConv.td4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetCallingConv.td b/include/llvm/Target/TargetCallingConv.td
index da3cbd2088..777aee84ea 100644
--- a/include/llvm/Target/TargetCallingConv.td
+++ b/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> {}