From 29689434635364346cbef6f4e309f1d9fcdd5d80 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 11 Mar 2010 00:22:57 +0000 Subject: [PATCH] add support, testcases, and dox for the new GHC calling convention. Patch by David Terei! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98212 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodeGenerator.html | 3 +- docs/LangRef.html | 26 +++++++-- include/llvm/CallingConv.h | 3 ++ lib/Target/X86/X86CallingConv.td | 22 ++++++++ lib/Target/X86/X86FastISel.cpp | 6 ++- lib/Target/X86/X86ISelLowering.cpp | 34 ++++++++---- lib/Target/X86/X86RegisterInfo.cpp | 11 +++- test/CodeGen/X86/ghc-cc.ll | 45 ++++++++++++++++ test/CodeGen/X86/ghc-cc64.ll | 86 ++++++++++++++++++++++++++++++ 9 files changed, 219 insertions(+), 17 deletions(-) create mode 100644 test/CodeGen/X86/ghc-cc.ll create mode 100644 test/CodeGen/X86/ghc-cc64.ll diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html index f26d0abfad5..0568667ec53 100644 --- a/docs/CodeGenerator.html +++ b/docs/CodeGenerator.html @@ -1679,7 +1679,8 @@ $ llc -regalloc=linearscan file.bc -o ln.s; supported on x86/x86-64 and PowerPC. It is performed if: