This is an archive of the discontinued LLVM Phabricator instance.

[Flang] Fix parsing error on loop count compiler directive
ClosedPublic

Authored by mnadeem on Jan 17 2023, 4:35 PM.

Diff Detail

Event Timeline

mnadeem created this revision.Jan 17 2023, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 4:35 PM
Herald added a subscriber: sunshaoce. · View Herald Transcript
mnadeem requested review of this revision.Jan 17 2023, 4:35 PM
mnadeem added a reviewer: kiranchandramohan.
klausler accepted this revision.Jan 17 2023, 4:41 PM
klausler added inline comments.
flang/lib/Parser/Fortran-parsers.cpp
1219

Two minor comments: I used "ignore_tkr" for the IGNORE_TKR directive parser since it actually has an underscore in its name. LOOP COUNT does not, so "loopCount" would be a better name.

Second, be sure to run your modified code through clang-format 16.x before merging.

This revision is now accepted and ready to land.Jan 17 2023, 4:41 PM
mnadeem updated this revision to Diff 490018.Jan 17 2023, 6:48 PM
mnadeem marked an inline comment as done.
This revision was landed with ongoing or failed builds.Jan 17 2023, 7:16 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 17 2023, 7:16 PM

@mnadeem Please update the documentation llvm-project/flang/docs/Directives.md to include dir$ loop count. Thank you!

@mnadeem Please update the documentation llvm-project/flang/docs/Directives.md to include dir$ loop count. Thank you!

This directive is parsed but ignored, should I still add it to Directives.md?