llvm-capstone/openmp
Jonas Hahnfeld 380346fce1 [OMPT] Add support for testing return addresses on POWER
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.

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

llvm-svn: 317786
2017-11-09 14:26:12 +00:00
..
libomptarget Revert "Rename fields of ompt_frame_t" 2017-11-03 18:28:25 +00:00
offload Liboffload: Patch for MPSS > 3.4.x (provided by Tim Cramer) 2015-05-06 10:58:40 +00:00
runtime [OMPT] Add support for testing return addresses on POWER 2017-11-09 14:26:12 +00:00
testsuite Apply name change to testsuite file. 2015-06-01 04:24:23 +00:00
www Support of mips & mips64 for openmprtl 2016-12-08 09:22:24 +00:00
.arcconfig Add a .arcconfig file for openmp. 2017-07-08 16:09:47 +00:00
.gitignore Create a git ignore file for openmp runtime. 2017-03-11 13:05:08 +00:00
CMakeLists.txt [CMake] Disable building libomptarget and add CMake switch 2017-07-26 13:55:00 +00:00
CREDITS.txt Cleanup version symbol macros and attributes/declspecs 2017-11-07 23:32:13 +00:00
LICENSE.txt Update copyright year in LICENSE.txt 2016-05-17 20:11:26 +00:00