OSDN Git Service

AArch64: Cleanup tailcall CC check, enable swiftcc.
authorMatthias Braun <matze@braunis.de>
Tue, 13 Sep 2016 19:27:38 +0000 (19:27 +0000)
committerMatthias Braun <matze@braunis.de>
Tue, 13 Sep 2016 19:27:38 +0000 (19:27 +0000)
commitf461e0920094a956763a791a150fca67827cefaf
tree385d1ac040edb06904690fec84863ec1ab1c47e4
parent1defb8fb49d33250660e878ad75b611cf6f829ba
AArch64: Cleanup tailcall CC check, enable swiftcc.

Cleanup/change the code that checks for possible tailcall conventions to
look the same as the one in the X86 target. This makes the distinction
between calling conventions that can guarnatee tailcalls and the ones
that may tailcall more obvious.

- Add Swift to the mayTailCall list
- PreserveMost seemed to be incorrectly part of the guarnteed tail call
  list, move it to the mayTailCall list.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281376 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
test/CodeGen/AArch64/arm64-call-tailcalls.ll