This is an archive of the discontinued LLVM Phabricator instance.

[flang] Enhance getTypeAsString for RecordType
ClosedPublic

Authored by clementval on Jun 21 2023, 2:04 PM.

Details

Summary

Add support for RecordType in getTypeAsString

Depends on D153461

Diff Detail

Event Timeline

clementval created this revision.Jun 21 2023, 2:04 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 21 2023, 2:04 PM
clementval requested review of this revision.Jun 21 2023, 2:04 PM

What is the motivation to use the component type for the name instead of the record type name instead?
Is it a goal that two derived types with the same components get the same name, won't the openacc recipe argument record type clash?

What is the motivation to use the component type for the name instead of the record type name instead?
Is it a goal that two derived types with the same components get the same name, won't the openacc recipe argument record type clash?

Thinking about this again, using just the name should be enough. At least for now.

Use record tyep name

razvanlupusoru accepted this revision.Jun 22 2023, 10:33 PM

Although technically it would be useful to reuse recipe for similar types, seems most useful to use record name. Looks good to me in its current form.

This revision is now accepted and ready to land.Jun 22 2023, 10:33 PM

Although technically it would be useful to reuse recipe for similar types, seems most useful to use record name. Looks good to me in its current form.

Another point is that similar type may have different user defined assignments, initial values and final routines (not sure if this matter in the recipes though).

This revision was automatically updated to reflect the committed changes.