aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86ISelLowering.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-01-26 19:04:47 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-01-26 19:04:47 +0000
commitddc419c581ac827045d614099adaa60765ce1ebe (patch)
tree44ddd52014e3c6ce88b49a2b24c43463ea39e544 /lib/Target/X86/X86ISelLowering.h
parent8dd0ab074a86ea5eaadfb970323ce133328a2860 (diff)
downloadexternal_llvm-ddc419c581ac827045d614099adaa60765ce1ebe.zip
external_llvm-ddc419c581ac827045d614099adaa60765ce1ebe.tar.gz
external_llvm-ddc419c581ac827045d614099adaa60765ce1ebe.tar.bz2
Code refactoring, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelLowering.h')
-rw-r--r--lib/Target/X86/X86ISelLowering.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/X86/X86ISelLowering.h b/lib/Target/X86/X86ISelLowering.h
index 1e66475..6fd00d6 100644
--- a/lib/Target/X86/X86ISelLowering.h
+++ b/lib/Target/X86/X86ISelLowering.h
@@ -19,6 +19,7 @@
#include "X86RegisterInfo.h"
#include "X86MachineFunctionInfo.h"
#include "llvm/Target/TargetLowering.h"
+#include "llvm/Target/TargetOptions.h"
#include "llvm/CodeGen/FastISel.h"
#include "llvm/CodeGen/SelectionDAG.h"
#include "llvm/CodeGen/CallingConvLower.h"
@@ -361,6 +362,10 @@ namespace llvm {
/// fit into displacement field of the instruction.
bool isOffsetSuitableForCodeModel(int64_t Offset, CodeModel::Model M,
bool hasSymbolicDisplacement = true);
+
+ /// IsEligibleForTailCallOpt - Return true if it's legal to perform tail call
+ /// optimization for the given calling convention.
+ bool IsEligibleForTailCallOpt(CallingConv::ID CC);
}
//===--------------------------------------------------------------------===//