This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Add TODOs for KIND = 2
ClosedPublic

Authored by clementval on Jun 13 2022, 1:57 AM.

Details

Summary

Add TODO for KIND=2 so the user is notified correctly.

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

Co-authored-by: Peter Steinfeld <psteinfeld@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Jun 13 2022, 1:57 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 13 2022, 1:57 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 13 2022, 1:57 AM
This revision is now accepted and ready to land.Jun 13 2022, 6:37 AM
PeteSteinfeld requested changes to this revision.Jun 13 2022, 7:37 AM

All builds and tests correctly, but it would be better to have calls to TODO() rather than fatal unsupported messages.

flang/lib/Optimizer/Builder/Runtime/Numeric.cpp
239

In other similar situations, we emit a TODO rather than a fatal unsupported message. This helps guarantee that we catch all such errors in the front end rather than in the runtime.

264

Same here.

291

And here.

328

And here.

355

And here.

381

And here.

406

And here.

This revision now requires changes to proceed.Jun 13 2022, 7:37 AM
clementval added inline comments.Jun 13 2022, 8:42 AM
flang/lib/Optimizer/Builder/Runtime/Numeric.cpp
239

But is this really a "TODO"? I don't think we plan to support more types here.

PeteSteinfeld accepted this revision.Jun 13 2022, 9:42 AM
PeteSteinfeld added inline comments.
flang/lib/Optimizer/Builder/Runtime/Numeric.cpp
239

Sounds good. I'll approve.

This revision is now accepted and ready to land.Jun 13 2022, 9:42 AM
This revision was automatically updated to reflect the committed changes.