Skip to content

Commit 564035e

Browse files
authored
[flang][OpenMP] Organize genOMP functions in OpenMP.cpp, NFC (#86309)
Put all of the genOMP functions together, organize them in two groups: for declarative constructs and for other (executable) constructs. Replace visit functions for OpenMPDeclarativeConstruct and OpenMPConstruct from listing individual visitors for each variant alternative to using a single generic visitor. Essentially, going from ``` std::visit( [](foo x) { genOMP(foo); } [](bar x) { TODO } [](baz x) { genOMP(baz); } ) ``` to ``` void genOMP(bar x) { // Separate visitor for an unhandled case TODO } [...] std::visit([&](auto &&s) { genOMP(s); }) // generic ``` This doesn't change any functionality, just reorganizes the functions a bit. The intent here is to improve the readability of this file.
1 parent 06cfbe3 commit 564035e

File tree

1 file changed

+279
-262
lines changed

1 file changed

+279
-262
lines changed

0 commit comments

Comments
 (0)