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

refactor (asr): rename symbol StructType to Struct and ttype Struct to StructType #2740

Merged
merged 14 commits into from
Jun 20, 2024

Conversation

kmr-srbh
Copy link
Contributor

Rename symbol StructType to Struct and ttype Struct to StructType.

Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
Copy link
Collaborator

@Thirumalai-Shaktivel Thirumalai-Shaktivel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise looks good to merge, thank you!

kmr-srbh and others added 8 commits June 19, 2024 22:18
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
Co-authored-by: Thirumalai Shaktivel <74826228+Thirumalai-Shaktivel@users.noreply.github.com>
}

void visit_Function(const ASR::Function_t &x) {
if( ASRUtils::is_intrinsic_optimization<ASR::Function_t>(&x) ) {
return ;
}
PassUtils::PassVisitor<Struct>::visit_Function(x);
PassUtils::PassVisitor<StructType>::visit_Function(x);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably be just a Struct, since it is a template parameter.

Copy link
Contributor

@certik certik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine. I left a minor comment. I am going to merge it now, to unblock Tanay.

@certik certik merged commit ecd26e2 into lcompilers:main Jun 20, 2024
14 checks passed
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

Successfully merging this pull request may close these issues.

4 participants