llvm-project/clang/unittests/CodeGen
Serge Pavlov ccdac23ab2 Unit tests for TBAA metadata generation.
Now tests for metadata created by clang involve compiling code snippets
placed into c/c++ source files and matching interesting patterns in the
obtained textual representation of IR. Writting such tests is a painful
process as metadata often form complex tree-like structures but textual
representation of IR contains only a pile of metadata at the module end.

This change implements IR matchers that may be used to match required
patterns in the binary IR representation. In this case the metadata
structure is not broken and creation of match patterns is easier.

The change adds unit tests for TBAA metadata generation.

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

llvm-svn: 321360
2017-12-22 15:22:45 +00:00
..
BufferSourceTest.cpp
CMakeLists.txt Unit tests for TBAA metadata generation. 2017-12-22 15:22:45 +00:00
CodeGenExternalTest.cpp Include getting generated struct offsets in CodegenABITypes 2017-10-10 23:54:21 +00:00
IRMatchers.h Unit tests for TBAA metadata generation. 2017-12-22 15:22:45 +00:00
IncrementalProcessingTest.cpp Add forgotten file in r311844. 2017-08-27 11:31:01 +00:00
TBAAMetadataTest.cpp Unit tests for TBAA metadata generation. 2017-12-22 15:22:45 +00:00