This is an archive of the discontinued LLVM Phabricator instance.

[flang][driver] Add default intrinsic module path in f18
ClosedPublic

Authored by arnamoy10 on Mar 25 2021, 6:26 AM.

Details

Summary

f18 currently does not have a default path for intrinsic modules. The default path was provided through command-line option. This patch

  1. Adds the default intrinsic modules path in the search directories first
  2. Prepends the intrinsic module directory path (if supplied) to the list of search directories
  3. Adds an alias fintrinsic-modules-path in f18
  4. Removes the added option for providing intrinsic module path from the test config files
  5. Update the test case to run for both flang and f18.

The motivations for this patch includes:

  1. Make f18 behave like flang-new (with respect to the module paths)
  2. Make it possible to share more tests between the drivers
  3. Make using f18 easier (the default path means that users are no longer required to specify it)

Diff Detail

Event Timeline

arnamoy10 created this revision.Mar 25 2021, 6:26 AM
arnamoy10 requested review of this revision.Mar 25 2021, 6:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 25 2021, 6:26 AM
arnamoy10 updated this revision to Diff 333327.Mar 25 2021, 9:47 AM
arnamoy10 edited the summary of this revision. (Show Details)

Adding an alias fintrinsic-modules-path in f18 and removing part of the test to make the test shareable.

awarzynski accepted this revision.Mar 29 2021, 3:58 AM

With this patch we can share more tests between the drivers and their behavior with respect to module paths becomes more consistent. Great to see this, thank you @arnamoy10 !

This revision is now accepted and ready to land.Mar 29 2021, 3:58 AM
arnamoy10 edited the summary of this revision. (Show Details)Mar 29 2021, 6:45 AM