This is an archive of the discontinued LLVM Phabricator instance.

[llvm-c] Add LLVMSetTailCallKind and LLVMGetTailCallKind
ClosedPublic

Authored by yamt on Jun 15 2023, 11:59 PM.

Diff Detail

Event Timeline

yamt created this revision.Jun 15 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
yamt requested review of this revision.Jun 15 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 11:59 PM
yamt updated this revision to Diff 533979.Jun 23 2023, 8:58 AM

add a test

i added a few people who have reviewed nearby files recently to reviewers. i hope it's ok.

lgtm aside from some nits

can you add this to the release notes?

llvm/include/llvm-c/Core.h
472

can you add @see CallInst::TailCallKind?

llvm/test/Bindings/llvm-c/echo.ll
106

can you also add a notail test?

yamt updated this revision to Diff 535762.Jun 29 2023, 6:12 AM

test, comment, release notes

yamt marked 2 inline comments as done.Jun 29 2023, 6:13 AM
aeubanks accepted this revision.Jun 29 2023, 9:48 AM

lgtm with wording changes

llvm/docs/ReleaseNotes.rst
119

I'd reword this to be

Added ``LLVMGetTailCallKind`` and ``LLVMSetTailCallKind`` to
allow getting and setting ``tail``, ``musttail``, and ``notail``
attributes on call instructions.
This revision is now accepted and ready to land.Jun 29 2023, 9:48 AM
yamt updated this revision to Diff 536104.Jun 29 2023, 9:26 PM

release notes rewording

yamt marked an inline comment as done.Jun 29 2023, 9:27 PM
yamt added a comment.Jul 27 2023, 3:32 AM

is there anything holding this back?

it's good to land, did you need me to land it for you?

yamt added a comment.Jul 31 2023, 7:45 AM

it's good to land, did you need me to land it for you?

yes.
i don't have any permissions here.

This revision was automatically updated to reflect the committed changes.