This is an archive of the discontinued LLVM Phabricator instance.

llvm: add C API methods to match 64bit ArrayType C++ API signatures
ClosedPublic

Authored by nektro on Feb 9 2023, 11:05 PM.

Details

Summary

Fixes https://github.com/llvm/llvm-project/issues/56496

As mentioned in the issue, new functions LLVMArrayType2 and LLVMGetArrayLength2 are created so as to not break the old API. the old methods are then marked as deprecated and callers are updated.

Diff Detail

Event Timeline

nektro created this revision.Feb 9 2023, 11:05 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: hiraditya. · View Herald Transcript
nektro requested review of this revision.Feb 9 2023, 11:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2023, 11:05 PM
nektro updated this revision to Diff 496333.Feb 9 2023, 11:08 PM
This comment was removed by nektro.
nektro added a comment.EditedFeb 9 2023, 11:18 PM

not sure why llvm/include/llvm-c/Core.h and llvm/lib/IR/Core.cpp have such a large diff, the local .patch doesn't have all those +/-

hmm and the first diff before i fixed the typo looks fine

nektro updated this revision to Diff 496339.EditedFeb 9 2023, 11:29 PM

oh maybe it was line endings, leaving the file only edited by git show leaves a correct diff

nektro updated this revision to Diff 496713.Feb 11 2023, 1:22 PM

ran git-clang-format

nikic accepted this revision.Feb 14 2023, 12:49 AM

LGTM

This revision is now accepted and ready to land.Feb 14 2023, 12:49 AM

If you need me to commit this for you, please specify the Name <email> to use.

nektro added a comment.EditedFeb 14 2023, 2:12 PM

yay 😁 my contact is Meghan Denny <hello@nektro.net>, that would be wonderful