[llvm-branch-commits] [flang] [flang][OpenMP] Implement LoopSequence class, calculate sequence length (PR #185296)
Jack Styles via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 9 02:50:05 PDT 2026
================
@@ -751,4 +769,69 @@ std::optional<int64_t> GetNumGeneratedNestsFrom(
// For every other loop construct return 1.
return 1;
}
+
+LoopSequence::LoopSequence(
+ const parser::ExecutionPartConstruct &root, bool allowAllLoops)
+ : allowAllLoops_(allowAllLoops) {
+ entry_ = createConstructEntry(root);
+ assert(entry_ && "Expecting loop like code");
----------------
Stylie777 wrote:
Is there a situation where this could return nullptr and be valid?
https://github.com/llvm/llvm-project/pull/185296
More information about the llvm-branch-commits
mailing list