This is an archive of the discontinued LLVM Phabricator instance.

[fir] Update fir.call op
ClosedPublic

Authored by clementval on Sep 29 2021, 5:03 AM.

Details

Summary

Move builders to .cpp file and update accordingly.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Jean Perier <jperier@nvidia.com>
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Sep 29 2021, 5:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 5:03 AM
clementval requested review of this revision.Sep 29 2021, 5:03 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2021, 5:03 AM

LGTM. A nit and a question.

flang/include/flang/Optimizer/Dialect/FIROps.td
2661–2662

Is the plan to move all non-trivial builders to cpp files but retain the trivial ones in td?

2672

Nit: wouldn't calling become an unused variable and lead to a warning?

This revision is now accepted and ready to land.Sep 29 2021, 9:10 AM
clementval added inline comments.Sep 29 2021, 9:15 AM
flang/include/flang/Optimizer/Dialect/FIROps.td
2661–2662

Yes. 1 or 2 lines builders/parsers/printers are fine in the td file. More we move them to the .cpp file.

2672

Good catch. I'll double check that before pushing.

This revision was automatically updated to reflect the committed changes.