summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-05-27 18:43:40 +0000
committerDan Gohman <gohman@apple.com>2010-05-27 18:43:40 +0000
commitdc53f1cb5ccbe554b0ce23bf26bae802763c3b10 (patch)
tree325bea0c878b9f83f5a888aae5f4447f3cf8d924 /llvm/lib/Target/X86/X86Subtarget.h
parent9c84d4a8a0ab6d12dca3cc15120114fedb7219bf (diff)
downloadbcm5719-llvm-dc53f1cb5ccbe554b0ce23bf26bae802763c3b10.tar.gz
bcm5719-llvm-dc53f1cb5ccbe554b0ce23bf26bae802763c3b10.zip
FastISel doesn't yet handle callee-pop functions.
To support this, move IsCalleePop from X86ISelLowering to X86Subtarget. llvm-svn: 104866
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index 646af91517f..8ad55b159d9 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -15,6 +15,7 @@
#define X86SUBTARGET_H
#include "llvm/Target/TargetSubtarget.h"
+#include "llvm/CallingConv.h"
#include <string>
namespace llvm {
@@ -237,6 +238,9 @@ public:
/// indicating the number of scheduling cycles of backscheduling that
/// should be attempted.
unsigned getSpecialAddressLatency() const;
+
+ /// IsCalleePop - Test whether a function should pop its own arguments.
+ bool IsCalleePop(bool isVarArg, CallingConv::ID CallConv) const;
};
} // End llvm namespace
OpenPOWER on IntegriCloud