[PATCH] D66061: Expose TailCallKind via the LLVM C API

Ryan Cumming via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 10 22:27:11 PDT 2019


etaoins created this revision.
etaoins added reviewers: CodaFi, jyknight, deadalnix, rnk.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D66061

Files:
  llvm/include/llvm-c/Core.h
  llvm/lib/IR/Core.cpp
  llvm/test/Bindings/llvm-c/invoke.ll
  llvm/tools/llvm-c-test/echo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66061.214549.patch
Type: text/x-patch
Size: 3963 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190811/79a8f55c/attachment.bin>


More information about the llvm-commits mailing list