[flang-commits] [flang] [flang][OpenMP] Refactor CountGeneratedNests, NFC (PR #185293)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Mon Mar 9 06:44:33 PDT 2026
================
@@ -248,7 +248,7 @@ void OmpStructureChecker::CheckSIMDNest(const parser::OpenMPConstruct &c) {
// Count the number of loop nests generated by `epc`. This is just a helper
// function for counting the number of loop nests in a parser::Block.
-static std::optional<size_t> CountGeneratedNests(
+static std::optional<int64_t> GetNumGeneratedNests(
const parser::ExecutionPartConstruct &epc) {
if (parser::Unwrap<parser::DoConstruct>(epc)) {
----------------
kparzysz wrote:
It's used in the `GetNumGeneratedNests` overload for parser::Block, at line 283 (after changes). The parser::Block overload is used at line 339 (after changes).
https://github.com/llvm/llvm-project/pull/185293
More information about the flang-commits
mailing list