diff options
author | Chris Lattner <sabre@nondot.org> | 2007-02-27 06:59:52 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-02-27 06:59:52 +0000 |
commit | fa9227ed54372a104898cbbec90c48fca79e5793 (patch) | |
tree | 7f6fc1c7ea9d31812acd52f8928933cabb2f77ef | |
parent | 81658a8aca792c3efb356ab9f9187e7f3472e021 (diff) | |
download | bcm5719-llvm-fa9227ed54372a104898cbbec90c48fca79e5793.tar.gz bcm5719-llvm-fa9227ed54372a104898cbbec90c48fca79e5793.zip |
Add calling convention info
llvm-svn: 34661
-rw-r--r-- | llvm/lib/Target/Target.td | 7 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86CallingConv.td | 6 |
2 files changed, 11 insertions, 2 deletions
diff --git a/llvm/lib/Target/Target.td b/llvm/lib/Target/Target.td index 6f8771d2902..fbc972a2928 100644 --- a/llvm/lib/Target/Target.td +++ b/llvm/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/llvm/lib/Target/X86/X86CallingConv.td b/llvm/lib/Target/X86/X86CallingConv.td index 635c729c9d8..98b978882e0 100644 --- a/llvm/lib/Target/X86/X86CallingConv.td +++ b/llvm/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 |