mirror-llvm-project/flang/examples/FlangOmpReport
Krzysztof Parzyszek 270a6a8f67
[flang][OpenMP] Store DECLARE_TARGET information in WithOmpDeclarative (#201103)
This will be used to emit DECLARE_TARGET directives into module files.

When a symbol apperars in DECLARE_TARGET, the OmpDeclareTarget flag will
be set on it (this includes procedures containing a DECLARE_TARGET
without arguments or clauses). The set of accompanying clauses will be
stored in the associated details, in the WithOmpDeclarative mixin. The
mixin was added to ObjectEntityDetails, ProcEntityDetails, and
CommonBlockDetails.

The design goal was to be able to reconstruct the appropriate DECLARE_
TARGET directive for individual symbols for the purpose of emitting it
in a module file. Simply storing and then unparsing the AST node may
include symbols that should not be emitted.

Additionally, refactor the WithOmpDeclarative printing code for reuse in
symbol dumping for debugging, and for printing clause sets.
2026-06-03 09:40:42 -05:00
..
CMakeLists.txt
FlangOmpReport.cpp
FlangOmpReportVisitor.cpp [flang][OpenMP] Store DECLARE_TARGET information in WithOmpDeclarative (#201103) 2026-06-03 09:40:42 -05:00
FlangOmpReportVisitor.h
requirements.txt
yaml_summarizer.py