[Flang] Fix parsing error on loop count compiler directive
authorNadeem, Usman <mnadeem@quicinc.com>
Wed, 18 Jan 2023 02:53:51 +0000 (18:53 -0800)
committerNadeem, Usman <mnadeem@quicinc.com>
Wed, 18 Jan 2023 03:15:47 +0000 (19:15 -0800)
commitc2d8974a89767678898f7f8a5e7caa3d527e5d56
tree0c8a23ed48d7380392345e4d1fe555d815aedd3b
parentd0942df43e5eb02bdcc44d499d62924214feef63
[Flang] Fix parsing error on loop count compiler directive

Fixes: https://github.com/llvm/llvm-project/issues/58731
Fixes: https://github.com/llvm/llvm-project/issues/56678

Only handles this form which was reported: `!DIR$ LOOP COUNT (n1[, n2]...)`

Differential Revision: https://reviews.llvm.org/D141976

Change-Id: I768c8cb9f289c5fc4adee1ef8262c6d827574f27
flang/include/flang/Parser/dump-parse-tree.h
flang/include/flang/Parser/parse-tree.h
flang/lib/Parser/Fortran-parsers.cpp
flang/lib/Parser/unparse.cpp
flang/test/Parser/compiler-directives.f90