]> granicus.if.org Git - llvm/commit
[BPF] add unit tests for preserve_{array,union,struct}_access_index intrinsics
authorYonghong Song <yhs@fb.com>
Mon, 15 Jul 2019 04:51:34 +0000 (04:51 +0000)
committerYonghong Song <yhs@fb.com>
Mon, 15 Jul 2019 04:51:34 +0000 (04:51 +0000)
commitb0b7c84081906adeba7b33eeb8b4192aefe3f47c
tree038cb8e492200be5767174b5d26102be7132f42a
parent0725062b21b5a7ce8fb95c21934d6cb847b7573c
[BPF] add unit tests for preserve_{array,union,struct}_access_index intrinsics

This is a followup patch for https://reviews.llvm.org/D61810/new/,
which adds new intrinsics preserve_{array,union,struct}_access_index.

Currently, only BPF backend utilizes preserve_{array,union,struct}_access_index
intrinsics, so all tests are compiled with BPF target.

https://reviews.llvm.org/D61524 already added some tests for these
intrinsics, but some of them pretty complex.
This patch added a few unit test cases focusing on individual intrinsic
functions.

Also made a few clarification on language reference for these intrinsics.

Differential Revision: https://reviews.llvm.org/D64606

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366038 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst
test/CodeGen/BPF/CORE/intrinsic-array.ll [new file with mode: 0644]
test/CodeGen/BPF/CORE/intrinsic-struct.ll [new file with mode: 0644]
test/CodeGen/BPF/CORE/intrinsic-union.ll [new file with mode: 0644]