This is an archive of the discontinued LLVM Phabricator instance.

[flang][NFC] Make KindTy consistent and consistently used.
ClosedPublic

Authored by schweitz on Feb 5 2021, 9:43 AM.

Diff Detail

Event Timeline

schweitz created this revision.Feb 5 2021, 9:43 AM
schweitz requested review of this revision.Feb 5 2021, 9:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2021, 9:43 AM

Should we change the following two usage as well?

lib/Optimizer/Dialect/FIRAttr.cpp:  int getFKind() const { return kind; }
lib/Optimizer/Dialect/FIRAttr.cpp:int RealAttr::getFKind() const { return getImpl()->getFKind(); }

LGTM. The proposed change can be made if necessary.

This revision is now accepted and ready to land.Feb 5 2021, 10:08 AM
mehdi_amini accepted this revision.Feb 5 2021, 10:30 AM

This kind of trivial renamings seem quite straightforward: should we use post-commit review for these?

Should we change the following two usage as well?

lib/Optimizer/Dialect/FIRAttr.cpp:  int getFKind() const { return kind; }
lib/Optimizer/Dialect/FIRAttr.cpp:int RealAttr::getFKind() const { return getImpl()->getFKind(); }

Yes. Thanks for spotting this one.