This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Switch to the MLIR coding style in the driver
ClosedPublic

Authored by awarzynski on May 5 2022, 5:32 AM.

Details

Summary

This patch re-factors the driver code in LLVM Flang (frontend + compiler) to use the MLIR style. For more context, please see: https://discourse.llvm.org/t/rfc-coding-style-in-the-driver/

Most changes here are rather self-explanatory. Accessors are renamed to be more consistent with the rest of LLVM (e.g. allSource --> getAllSources). Additionally, MLIR clang-tidy files are added in the affected directories.

[1] https://mlir.llvm.org/getting_started/DeveloperGuide/

Depends on D124669

Diff Detail

Event Timeline

awarzynski created this revision.May 5 2022, 5:32 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
awarzynski requested review of this revision.May 5 2022, 5:32 AM
awarzynski edited the summary of this revision. (Show Details)May 5 2022, 5:39 AM
awarzynski edited the summary of this revision. (Show Details)May 5 2022, 9:02 AM

LGTM. It's consistent with the overall project and will be easier for the community to maintain in the long run.

awarzynski updated this revision to Diff 427565.May 6 2022, 1:54 AM

Add missing clang-format config files, re-format accordingly

This revision is now accepted and ready to land.May 13 2022, 6:40 AM