summaryrefslogtreecommitdiffstats
path: root/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
commit4d3d6e1a0c99e2212953a90185a8d027c595bf5a (patch)
tree10a7d7b3cb3b15ceb043bf5c865b78210be59fc9 /lib/Target/X86/X86Subtarget.h
parentad9aaf038e1886013ef7118608182c479c986a97 (diff)
downloadexternal_llvm-4d3d6e1a0c99e2212953a90185a8d027c595bf5a.zip
external_llvm-4d3d6e1a0c99e2212953a90185a8d027c595bf5a.tar.gz
external_llvm-4d3d6e1a0c99e2212953a90185a8d027c595bf5a.tar.bz2
FastISel doesn't yet handle callee-pop functions.
To support this, move IsCalleePop from X86ISelLowering to X86Subtarget. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r--lib/Target/X86/X86Subtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h
index 646af91..8ad55b1 100644
--- a/lib/Target/X86/X86Subtarget.h
+++ b/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