Page MenuHomePhabricator

elmcdonough (Ethan Luis McDonough)
User

Projects

User does not belong to any projects.

User Details

User Since
Jan 30 2023, 9:13 AM (8 w, 5 d)

Recent Activity

Mon, Mar 27

elmcdonough updated the diff for D146487: [flang] HLFIR to FIR lowering for complex parts.

Added reboxing tests

Mon, Mar 27, 5:40 PM · Unknown Object (Project), Restricted Project

Wed, Mar 22

elmcdonough added a reverting change for rG823ddba1b325: [flang] Feature list plugin: rG22293a3d85e9: Revert "[flang] Feature list plugin" due to failing build.
Wed, Mar 22, 1:50 PM · Unknown Object (Project), Restricted Project
elmcdonough committed rG22293a3d85e9: Revert "[flang] Feature list plugin" due to failing build (authored by elmcdonough).
Revert "[flang] Feature list plugin" due to failing build
Wed, Mar 22, 1:50 PM · Unknown Object (Project), Restricted Project
elmcdonough added a reviewer for D146487: [flang] HLFIR to FIR lowering for complex parts: clementval.
Wed, Mar 22, 10:38 AM · Unknown Object (Project), Restricted Project

Tue, Mar 21

elmcdonough committed rG823ddba1b325: [flang] Feature list plugin (authored by elmcdonough).
[flang] Feature list plugin
Tue, Mar 21, 11:28 PM · Unknown Object (Project), Restricted Project
elmcdonough added a comment to D146487: [flang] HLFIR to FIR lowering for complex parts.

Shouldn't the title of this patch be "HLFIR to FIR ..."?

Tue, Mar 21, 7:35 AM · Unknown Object (Project), Restricted Project
elmcdonough retitled D146487: [flang] HLFIR to FIR lowering for complex parts from [flang] FIR to HLFIR lowering for complex parts to [flang] HLFIR to FIR lowering for complex parts.
Tue, Mar 21, 7:35 AM · Unknown Object (Project), Restricted Project

Mon, Mar 20

elmcdonough requested review of D146487: [flang] HLFIR to FIR lowering for complex parts.
Mon, Mar 20, 6:05 PM · Unknown Object (Project), Restricted Project

Fri, Mar 17

elmcdonough committed rGbde91fd03f72: [flang] Feature list plugin (authored by elmcdonough).
[flang] Feature list plugin
Fri, Mar 17, 12:29 AM · Unknown Object (Project), Restricted Project

Tue, Mar 7

elmcdonough committed rGba45f63782fa: [flang] Lower complex part (authored by elmcdonough).
[flang] Lower complex part
Tue, Mar 7, 9:40 AM · Unknown Object (Project), Restricted Project
elmcdonough closed D145005: [flang] Lower complex part.
Tue, Mar 7, 9:40 AM · Restricted Project, Unknown Object (Project)

Mon, Mar 6

elmcdonough updated the diff for D145005: [flang] Lower complex part.
Mon, Mar 6, 10:17 PM · Restricted Project, Unknown Object (Project)

Mar 2 2023

elmcdonough added inline comments to D145005: [flang] Lower complex part.
Mar 2 2023, 8:54 AM · Restricted Project, Unknown Object (Project)

Mar 1 2023

elmcdonough added a comment to D145005: [flang] Lower complex part.

Thank you for the feedback, Jean. I'll keep looking into this.

Mar 1 2023, 11:35 AM · Restricted Project, Unknown Object (Project)

Feb 28 2023

elmcdonough added a comment to D145005: [flang] Lower complex part.

Something to note is that this patch currently doesn't support expressions like array%im + 3 because arith.fadd will complain that fir.real isn't floating-point-like. It also seems like hlfir.designate expects a fir.real designation type, so I'm not really sure how to reconcile this. I don't know if this is issue with this patch or if its a problem outside of the scope of this task, but I figured it was worth bringing up.

Feb 28 2023, 2:34 PM · Restricted Project, Unknown Object (Project)
elmcdonough requested review of D145005: [flang] Lower complex part.
Feb 28 2023, 2:01 PM · Restricted Project, Unknown Object (Project)

Feb 21 2023

elmcdonough added a comment to D143301: [flang] Handle unsupported warning flags.

The new tests fail to link:

That is, these new tests cause check-flang to fail. @elmcdonough, can you please fix things so that check-flang no longer fails?

Feb 21 2023, 6:39 PM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough committed rGce3a1c59e180: [flang] Handle unsupported warning flags (authored by elmcdonough).
[flang] Handle unsupported warning flags
Feb 21 2023, 2:14 PM · Restricted Project, Unknown Object (Project), Restricted Project
elmcdonough closed D143301: [flang] Handle unsupported warning flags.
Feb 21 2023, 2:14 PM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.

Comment edit + exhuastive testing

Feb 21 2023, 11:53 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 20 2023

elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.

Clang format + documentation update

Feb 20 2023, 1:18 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 18 2023

elmcdonough committed rG9ce8eb0fbc83: [flang] Remove macro replacement in angular bracket includes (authored by elmcdonough).
[flang] Remove macro replacement in angular bracket includes
Feb 18 2023, 12:00 AM · Unknown Object (Project), Restricted Project

Feb 17 2023

elmcdonough closed D143469: [flang] Remove macro replacement in angular bracket includes.
Feb 17 2023, 11:59 PM · Restricted Project, Unknown Object (Project)
elmcdonough added a comment to D143301: [flang] Handle unsupported warning flags.

@elmcdonough , let me rephrase this (should've been clearer before, sorry):

One thing that's not clear to me - how come "-Wextra" is not treated as an error and "-Wblah" is?

Where's the logic that makes sure that -Wextra (and other flags that you redefine here) is reported as unused? That's not clear from this definition:

multiclass FlangIgnoredDiagOpt<string name> {
  def unsupported_warning_w#NAME : Flag<["-", "--"], "W"#name>, Group<flang_ignored_w_Group>;
}

In particular, I don't see anything that would check whether a particular option is in this group: flang_ignored_w_Group.

Feb 17 2023, 3:20 PM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.
Feb 17 2023, 3:03 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 16 2023

elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.

Change multiclass name for the sake of clarity.

Feb 16 2023, 3:26 PM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough retitled D143469: [flang] Remove macro replacement in angular bracket includes from Remove macro replacement in angular bracket includes to [flang] Remove macro replacement in angular bracket includes.
Feb 16 2023, 2:50 PM · Restricted Project, Unknown Object (Project)
elmcdonough added a comment to D143469: [flang] Remove macro replacement in angular bracket includes.

Ping

Feb 16 2023, 2:42 PM · Restricted Project, Unknown Object (Project)

Feb 14 2023

elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.
Feb 14 2023, 11:50 AM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough added a comment to D143301: [flang] Handle unsupported warning flags.

Thanks for the feedback everyone. This is my current understanding on what I should do: I am to rename gfortran_unsupported_Group to flang_ignored_w_Group and move the non W group gfortran options into another patch. I have these changes locally and am currently building + testing. Please let me know if I'm misinterpreting these instructions.

Feb 14 2023, 11:25 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 11 2023

elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.

This update adds other unsupported gfortran options to Options.td.

Feb 11 2023, 5:53 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 8 2023

elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.
Feb 8 2023, 11:45 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 7 2023

elmcdonough added a comment to D143301: [flang] Handle unsupported warning flags.

Let's do (= @elmcdonough, please do) two things:

  1. Fix the tests and get this in (assuming it's reasonable)
  2. Start a discourse thread with the different options we discussed so far. My vote is to do what clang does. If that is not properly defined we can do categories of ignored options for other compilers and emit warnings under a common flag (-Wgfortran-only, -Wifx-only, ...).
Feb 7 2023, 1:56 PM · Restricted Project, Restricted Project, Unknown Object (Project)
elmcdonough updated the diff for D143469: [flang] Remove macro replacement in angular bracket includes.

I fixed the formatting and test.

Feb 7 2023, 1:26 PM · Restricted Project, Unknown Object (Project)
elmcdonough added a comment to D143301: [flang] Handle unsupported warning flags.

Squash your commits into a single one before uploading it to Phabricator. We don't do multi-commit pull requests but one commit changes that contain the entire feature (basically we don't care how we arrived at the final commit).

The test should check for the diagnosis, thus that we emit a warning when we expect it, and none otherwise.

@awarzynski other thoughts?

Thanks for sending this, @elmcdonough !

I appreciate that in your case you are only concerned with -Wextra, but what are we meant to do with other flags like this (either diagnostic or non-diagnostic option that's used in GFortran, but unavailable in LLVM Flang)? I think that we should agree to treat all unsupported GFortran options like this (for consistency) and take a bit more generic approach. I see at least a couple of options:

  • Add another flag in Options.td to clearly document such options (something akin FlangOnlyOption), e.g. GFortranFlag. This way, adding a new "unsupported" option would boil down to decorating it with this new flag in Options.td,
  • Create something similar to e.g. LangOptions.def to define such unsupported options.

Also, this is effectively changing the design of the driver (and the user-visible behavior). I would appreciate a note in:

It's fine if you only add -Wextra for now, but I think that it would be good for the long term health of Flang if we had a clear mechanism for such flags that others can use in the future. WDYT?

Feb 7 2023, 10:58 AM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 6 2023

elmcdonough requested review of D143469: [flang] Remove macro replacement in angular bracket includes.
Feb 6 2023, 11:54 PM · Restricted Project, Unknown Object (Project)
elmcdonough updated the diff for D143301: [flang] Handle unsupported warning flags.

Add tests for change as requested by reviewer

Feb 6 2023, 6:50 PM · Restricted Project, Restricted Project, Unknown Object (Project)

Feb 3 2023

elmcdonough requested review of D143301: [flang] Handle unsupported warning flags.
Feb 3 2023, 3:28 PM · Restricted Project, Restricted Project, Unknown Object (Project)