OSDN Git Service

X86: treat SwiftCC as Win64_CC on Win64
authorSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Sep 2017 21:00:40 +0000 (21:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Wed, 20 Sep 2017 21:00:40 +0000 (21:00 +0000)
commit9d697e1c3cc013e64fbebf6c00f039d7b6839cb0
tree66e549f3adade787af0c1ff372d2cd86c9689f0d
parent4739f7353dc525535e89614a9db7e367cb3334b2
X86: treat SwiftCC as Win64_CC on Win64

The Swift CC is identical to Win64 CC with the exception of swift error
being passed in r12 which is a CSR.  However, since this calling
convention is only used in swift -> swift code, it does not impact
interoperability and can be treated entirely as Win64 CC.  We would
previously incorrectly lower the frame setup as we did not treat the
frame as conforming to Win64 specifications.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313813 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86Subtarget.h
test/CodeGen/X86/swiftcc.ll [new file with mode: 0644]