]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commit
X86: Implement the vectorcall calling convention
authorReid Kleckner <reid@kleckner.net>
Tue, 28 Oct 2014 01:29:26 +0000 (01:29 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 28 Oct 2014 01:29:26 +0000 (01:29 +0000)
commitd5de327da0b174c5d44f776f827c1ea8bfe99095
treecbccdd367aa42a0e53efbc9e582d05aec5e217fc
parentdd778c6c9feb6ceb87e851298ada8d8ada4f0c17
X86: Implement the vectorcall calling convention

This is a Microsoft calling convention that supports both x86 and x86_64
subtargets. It passes vector and floating point arguments in XMM0-XMM5,
and passes them indirectly once they are consumed.

Homogenous vector aggregates of up to four elements can be passed in
sequential vector registers, but this part is not implemented in LLVM
and will be handled in Clang.

On 32-bit x86, it is similar to fastcall in that it uses ecx:edx as
integer register parameters and is callee cleanup. On x86_64, it
delegates to the normal win64 calling convention.

Reviewers: majnemer

Differential Revision: http://reviews.llvm.org/D5943

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@220745 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/CallingConv.h
lib/AsmParser/LLLexer.cpp
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLToken.h
lib/IR/AsmWriter.cpp
lib/IR/Mangler.cpp
lib/Target/X86/X86CallingConv.h
lib/Target/X86/X86CallingConv.td
test/CodeGen/X86/vectorcall.ll [new file with mode: 0644]