diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2023-12-22 16:35:45 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2023-12-22 16:38:33 +0000 |
commit | 3dd45dee7f52f301f4bf8bec153b9c5c104294cc (patch) | |
tree | 6e81b58880959672a2cbba4fdfad835ea5b6ec10 /gcc/go | |
parent | cefae511ed7fa34ef6d24b67a7bc305459bf10e8 (diff) | |
download | gcc-3dd45dee7f52f301f4bf8bec153b9c5c104294cc.zip gcc-3dd45dee7f52f301f4bf8bec153b9c5c104294cc.tar.gz gcc-3dd45dee7f52f301f4bf8bec153b9c5c104294cc.tar.bz2 |
OpenMP: Add prettyprinter support for context selectors.
With the change to use enumerators instead of strings to represent
context selector and selector-set names, the default tree-list output
for dumping selectors is less helpful for debugging and harder to use
in test cases. This patch adds support for dumping context selectors
using syntax similar to that used for input to the compiler.
gcc/ChangeLog
* omp-general.cc (omp_context_name_list_prop): Remove static qualifer.
* omp-general.h (omp_context_name_list_prop): Declare.
* tree-cfg.cc (dump_function_to_file): Intercept
"omp declare variant base" attribute for special handling.
* tree-pretty-print.cc: Include omp-general.h.
(dump_omp_context_selector): New.
(print_omp_context_selector): New.
* tree-pretty-print.h (print_omp_context_selector): Declare.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions