]> granicus.if.org Git - llvm/commit
Expose TailCallKind via the LLVM C API
authorRobert Widmann <devteam.codafi@gmail.com>
Wed, 14 Aug 2019 23:54:35 +0000 (23:54 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Wed, 14 Aug 2019 23:54:35 +0000 (23:54 +0000)
commitde7cabaee5b659eeaa6ba2f8bcd5595f7b7148e9
tree7b0439776dbac91ebbab57da945007216708792d
parent6d385cd1f1228f53a084004d977465b39e7e91bb
Expose TailCallKind via the LLVM C API

Summary: This exposes `CallInst`'s tail call kind via new `LLVMGetTailCallKind` and `LLVMSetTailCallKind` functions. The motivation for this is to be able to see `musttail` for languages that require mandatory tail calls for correctness. Today only the weaker `LLVMSetTail` is exposed and there is no way to set `GuaranteedTailCallOpt` via the C API.

Reviewers: CodaFi, jyknight, deadalnix, rnk

Reviewed By: CodaFi

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D66061

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368945 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Core.h
lib/IR/Core.cpp
test/Bindings/llvm-c/invoke.ll
tools/llvm-c-test/echo.cpp