[llvm-c] Add C API methods to match 64bit ArrayType C++ API signatures
authorMeghan Denny <hello@nektro.net>
Wed, 15 Feb 2023 08:47:32 +0000 (09:47 +0100)
committerNikita Popov <npopov@redhat.com>
Wed, 15 Feb 2023 08:57:01 +0000 (09:57 +0100)
commit35276f16e5a2cae0dfb49c0fbf874d4d2f177acc
treef860bed3916fa485cce5f83fc0652fd27002fc8a
parent71712440bbb26b8e1789372024c3a14428b68eae
[llvm-c] Add C API methods to match 64bit ArrayType C++ API signatures

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.

Differential Revision: https://reviews.llvm.org/D143700
llvm/bindings/ocaml/llvm/llvm_ocaml.c
llvm/include/llvm-c/Core.h
llvm/lib/IR/Core.cpp
llvm/tools/llvm-c-test/echo.cpp