Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide more structure/derived data type analysis #174

Open
raehik opened this issue Aug 23, 2021 · 3 comments
Open

Provide more structure/derived data type analysis #174

raehik opened this issue Aug 23, 2021 · 3 comments

Comments

@raehik
Copy link
Collaborator

raehik commented Aug 23, 2021

Based on a conversation with @RaoulHC , we don't appear to gather type information for structures/derived data types during type analysis. The analysis at Analysis.Types outputs a TypeEnv = Map Name IDType. We could build and output a Map Name (Map Name IDType) alongside it that maps DDT/record type names to a map of their fields & corresponding types.

@dorchard
Copy link
Member

Is this also a problem in fotran-vars?

@RaoulHC
Copy link
Collaborator

RaoulHC commented Aug 23, 2021

The StructureTable module in fortran-vars deals with this, so if we're to move over to using information from the analysis phase we'll need it to do something similar to that.

@raehik
Copy link
Collaborator Author

raehik commented Sep 1, 2021

Support for regular fields (not union, internal structure extensions) added in #175 thanks to @RaoulHC . I'll keep this issue around for a while -- interested in seeing if there's any way we can improve transformations or analyses in CamFort with this new info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants