Page MenuHomePhabricator

Unit tests for TBAA metadata generation.
ClosedPublic

Authored by sepavloff on Dec 20 2017, 2:59 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

sepavloff created this revision.Dec 20 2017, 2:59 AM
sepavloff removed a subscriber: kosarev.
rjmccall accepted this revision.Dec 21 2017, 11:23 PM

Interesting. Okay, LGTM.

This revision is now accepted and ready to land.Dec 21 2017, 11:23 PM
This revision was automatically updated to reflect the committed changes.