From a8fd40b50aac4582d6e8fe73a92a66eda961bdef Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Tue, 16 Jun 2009 18:50:49 +0000 Subject: Address review comments: add 3 ARM calling conventions. Dispatch C calling conv. to one of these conventions based on target triple and subtarget features. llvm-svn: 73530 --- llvm/lib/Target/ARM/ARMCallingConv.td | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'llvm/lib/Target/ARM/ARMCallingConv.td') diff --git a/llvm/lib/Target/ARM/ARMCallingConv.td b/llvm/lib/Target/ARM/ARMCallingConv.td index f126760cd5e..47151e667c4 100644 --- a/llvm/lib/Target/ARM/ARMCallingConv.td +++ b/llvm/lib/Target/ARM/ARMCallingConv.td @@ -17,11 +17,6 @@ class CCIfSubtarget: class CCIfAlign: CCIf; -/// CCIfFloatABI - Match of the float ABI and the arg. ABIType may be "Hard" or -/// "Soft". -class CCIfFloatABI: - CCIf; - //===----------------------------------------------------------------------===// // ARM APCS Calling Convention //===----------------------------------------------------------------------===// @@ -105,25 +100,3 @@ def RetCC_ARM_AAPCS_VFP : CallingConv<[ S9, S10, S11, S12, S13, S14, S15]>>, CCDelegateTo ]>; - -//===----------------------------------------------------------------------===// -// ARM Calling Convention Dispatch -//===----------------------------------------------------------------------===// - -def CC_ARM : CallingConv<[ - CCIfSubtarget<"isAAPCS_ABI()", - CCIfSubtarget<"hasVFP2()", - CCIfFloatABI<"Hard", - CCDelegateTo>>>, - CCIfSubtarget<"isAAPCS_ABI()", CCDelegateTo>, - CCDelegateTo -]>; - -def RetCC_ARM : CallingConv<[ - CCIfSubtarget<"isAAPCS_ABI()", - CCIfSubtarget<"hasVFP2()", - CCIfFloatABI<"Hard", - CCDelegateTo>>>, - CCIfSubtarget<"isAAPCS_ABI()", CCDelegateTo>, - CCDelegateTo -]>; -- cgit v1.2.3