Declare that musttail calls in variadic functions forward the ellipsis
authorReid Kleckner <reid@kleckner.net>
Tue, 26 Aug 2014 00:33:28 +0000 (00:33 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 26 Aug 2014 00:33:28 +0000 (00:33 +0000)
commit44b3a0b4115ad000540370897b30dc01f406bf0f
tree888fe58dcf47fa9adb06395d75a93e9e5a53bdd1
parent64bb4a64e73c3cae0086840bd6f40a7e5b4c0b30
Declare that musttail calls in variadic functions forward the ellipsis

Summary:
There is no functionality change here except in the way we assemble and
dump musttail calls in variadic functions. There's really no need to
separate out the bits for musttail and "is forwarding varargs" on call
instructions. A musttail call by definition has to forward the ellipsis
or it would fail verification.

Reviewers: chandlerc, nlewycky

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216423 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
lib/AsmParser/LLParser.cpp
lib/AsmParser/LLParser.h
lib/IR/AsmWriter.cpp
test/Assembler/musttail-invalid-1.ll [new file with mode: 0644]
test/Assembler/musttail-invalid-2.ll [new file with mode: 0644]
test/Assembler/musttail.ll [new file with mode: 0644]
test/Transforms/Inline/inline-musttail-varargs.ll [new file with mode: 0644]