From: Chris Lattner Date: Tue, 27 Feb 2007 06:59:52 +0000 (+0000) Subject: Add calling convention info X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d637a8b436eb616fe08f7a4f7912af9d21848136;p=oota-llvm.git Add calling convention info git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34661 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/Target.td b/lib/Target/Target.td index 6f8771d2902..fbc972a2928 100644 --- a/lib/Target/Target.td +++ b/lib/Target/Target.td @@ -355,6 +355,11 @@ class Processor 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 635c729c9d8..98b978882e0 100644 --- a/lib/Target/X86/X86CallingConv.td +++ b/lib/Target/X86/X86CallingConv.td @@ -71,7 +71,11 @@ def RetCC_X86_64 : CallingConv<[ CCDelegateTo ]>; - +// This is the return-value convention used for the entire X86 backend. +def RetCC_X86 : CallingConv<[ + CCMatchIf<"Subtarget->is64Bit()", CCDelegateTo>, + CCDelegateTo +]>; //===----------------------------------------------------------------------===// // Argument Calling Conventions