This is an archive of the discontinued LLVM Phabricator instance.

[OMPT] Add support for testing return addresses on POWER
ClosedPublic

Authored by Hahnfeld on Nov 6 2017, 2:20 PM.

Details

Summary

Return addresses are determined based on the address of a label
that is inserted directly after a pragma / API call. In some cases
the tests can assume a known number of instructions between the
addresses. However, the instructions and their encoded lengths
depend on the target that the test is compiled on.

Firstly, this patch refactors the macro print_current_address() to
allow such target dependent modifications and adds information for
the observed instructions on POWER. Secondly, it adapts the related
macro print_fuzzy_address() to reuse much of "hacky" code and fixes
the used formatting strings in the printf() call. Finally, it also
adds documentation about how these macros are intended to work.

Diff Detail

Repository
rL LLVM

Event Timeline

Hahnfeld created this revision.Nov 6 2017, 2:20 PM
Hahnfeld edited the summary of this revision. (Show Details)Nov 6 2017, 5:27 PM
This revision is now accepted and ready to land.Nov 9 2017, 5:27 AM
This revision was automatically updated to reflect the committed changes.