aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-02-27 06:59:52 +0000
committerChris Lattner <sabre@nondot.org>2007-02-27 06:59:52 +0000
commitd637a8b436eb616fe08f7a4f7912af9d21848136 (patch)
treed36c8a4e923aa29443dd4cd15006576dc47515b6
parent9472c373a3378982ab4ef1a2caafabd4acf58ba2 (diff)
downloadexternal_llvm-d637a8b436eb616fe08f7a4f7912af9d21848136.zip
external_llvm-d637a8b436eb616fe08f7a4f7912af9d21848136.tar.gz
external_llvm-d637a8b436eb616fe08f7a4f7912af9d21848136.tar.bz2
Add calling convention info
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34661 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/Target.td7
-rw-r--r--lib/Target/X86/X86CallingConv.td6
2 files changed, 11 insertions, 2 deletions
diff --git a/lib/Target/Target.td b/lib/Target/Target.td
index 6f8771d..fbc972a 100644
--- a/lib/Target/Target.td
+++ b/lib/Target/Target.td
@@ -355,6 +355,11 @@ class Processor<string n, ProcessorItineraries pi, list<SubtargetFeature> f> {
}
//===----------------------------------------------------------------------===//
-// Pull in the common support for DAG isel generation
+// Pull in the common support for calling conventions.
+//
+include "TargetCallingConv.td"
+
+//===----------------------------------------------------------------------===//
+// Pull in the common support for DAG isel generation.
//
include "TargetSelectionDAG.td"
diff --git a/lib/Target/X86/X86CallingConv.td b/lib/Target/X86/X86CallingConv.td
index 635c729..98b9788 100644
--- a/lib/Target/X86/X86CallingConv.td
+++ b/lib/Target/X86/X86CallingConv.td
@@ -71,7 +71,11 @@ def RetCC_X86_64 : CallingConv<[
CCDelegateTo<RetCC_X86_64_C>
]>;
-
+// This is the return-value convention used for the entire X86 backend.
+def RetCC_X86 : CallingConv<[
+ CCMatchIf<"Subtarget->is64Bit()", CCDelegateTo<RetCC_X86_64>>,
+ CCDelegateTo<RetCC_X86_32>
+]>;
//===----------------------------------------------------------------------===//
// Argument Calling Conventions