1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/unittests/Remarks
Francis Visoiu Mistrih c0b919738c [Remarks] Add parser for bitstream remarks
The bitstream remark serializer landed in r367372.

This adds a bitstream remark parser that parser bitstream remark files
to llvm::remarks::Remark objects through the RemarkParser interface.

A few interesting things to point out:

* There are parsing helpers to parse the different types of blocks
* The main parsing helper allows us to parse remark metadata and open an
external file containing the encoded remarks
* This adds a dependency from the Remarks library to the BitstreamReader
library
* The testing strategy is to create a remark entry through YAML, parse
it, serialize it to bitstream, parse that back and compare the objects.
* There are close to no tests for malformed bitstream remarks, due to
the lack of textual format for the bitstream format.
* This adds a new C API for parsing bitstream remarks:
LLVMRemarkParserCreateBitstream.
* This bumps the REMARKS_API_VERSION to 1.

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

llvm-svn: 371429
2019-09-09 17:43:50 +00:00
..
BitstreamRemarksFormatTest.cpp Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
BitstreamRemarksParsingTest.cpp [Remarks] Add parser for bitstream remarks 2019-09-09 17:43:50 +00:00
BitstreamRemarksSerializerTest.cpp Reland: [Remarks] Add an LLVM-bitstream-based remark serializer 2019-07-31 00:13:51 +00:00
CMakeLists.txt [Remarks] Add parser for bitstream remarks 2019-09-09 17:43:50 +00:00
RemarksAPITest.cpp [Remarks] Add support for internalizing a remark in a string table 2019-09-06 17:22:51 +00:00
RemarksStrTabParsingTest.cpp [Remarks] Add string deduplication using a string table 2019-04-24 00:06:24 +00:00
YAMLRemarksParsingTest.cpp [Remarks] Update unit test to use StringRef::lower 2019-07-26 22:36:20 +00:00
YAMLRemarksSerializerTest.cpp [Remarks] Don't serialize metadata if a string table is not used 2019-09-05 18:30:20 +00:00