1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/tools/llvm-c-test
Craig Disselkoen 1cbae6c6e8 C API: functions to get mask of a ShuffleVector
This commit fixes a regression (from LLVM 10 to LLVM 11 RC3) in the LLVM
C API.

Previously, commit 1ee6ec2bf removed the mask operand from the
ShuffleVector instruction, storing the mask data separately in the
instruction instead; this reduced the number of operands of
ShuffleVector from 3 to 2. AFAICT, this change unintentionally caused
a regression in the LLVM C API. Specifically, it is no longer possible
to get the mask of a ShuffleVector instruction through the C API. This
patch introduces new functions which together allow a C API user to get
the mask of a ShuffleVector instruction, restoring the functionality
which was previously available through LLVMGetOperand().

This patch also adds tests for this change to the llvm-c-test
executable, which involved adding support for InsertElement,
ExtractElement, and ShuffleVector itself (as well as constant vectors)
to echo.cpp. Previously, vector operations weren't tested at all in
echo.ll.

I also fixed some typos in comments and help-text nearby these changes,
which I happened to spot while developing this patch. Since the typo
fixes are technically unrelated other than being in the same files, I'm
happy to take them out if you'd rather they not be included in the patch.

Differential Revision: https://reviews.llvm.org/D88190
2020-09-25 16:01:05 -07:00
..
attributes.c llvm-c-test avoid calling malloc(0) 2019-07-04 14:36:34 +00:00
calc.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CMakeLists.txt Fix BUILD_SHARED_LIBS builds after r361567 2019-05-24 02:15:27 +00:00
debuginfo.c Add debug info support for Swift/Clang APINotes. 2020-03-11 18:47:30 -07:00
diagnostic.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
disassemble.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
echo.cpp C API: functions to get mask of a ShuffleVector 2020-09-25 16:01:05 -07:00
helpers.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
include-all.c [llvm-c-test] Make include-all.c do what its name says it does 2019-05-06 11:31:45 +00:00
llvm-c-test.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
main.c C API: functions to get mask of a ShuffleVector 2020-09-25 16:01:05 -07:00
metadata.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
module.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
object.c [LLVM-C] Add Section and Symbol Iterator Accessors for Object File Binaries 2019-04-09 21:53:31 +00:00
targets.c Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00