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

const folding in gccrs: remove ConstCtx class. #1283

Merged
merged 1 commit into from
May 26, 2022

Conversation

abbasfaisal
Copy link
Collaborator

@abbasfaisal abbasfaisal commented May 26, 2022

Card: Link

This class had potential to hinder porting further const folding code from C++. This edit makes it easy to copy code from constexpr.cc to rust-constexpr.cc and so on.

Structs constexpr_ctx and constexpr_global_ctx have been copied as well as to keep constexpr_ops_count after removing the class. These structs will be filled further as the port carries on. The prototypes inside ConstCtx have been copied over to rust-constexpr.cc as static prototypes.

This class has potential to hinder porting further const folding code from C++.
So this edit makes it easy to copy code from constexpr.cc to rust-constexpr.cc
and so on.

Signed-off-by: Faisal Abbas <90.abbasfaisal@gmail.com>
@philberty philberty added this to In progress in GSoC 2022 - Constexpr via automation May 26, 2022
@abbasfaisal abbasfaisal moved this from In progress to Review in progress in GSoC 2022 - Constexpr May 26, 2022
@abbasfaisal abbasfaisal moved this from Review in progress to In progress in GSoC 2022 - Constexpr May 26, 2022
Copy link
Member

@philberty philberty left a comment

Choose a reason for hiding this comment

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

LGTM

GSoC 2022 - Constexpr automation moved this from In progress to Reviewer approved May 26, 2022
@philberty
Copy link
Member

bors r+

@bors
Copy link
Contributor

bors bot commented May 26, 2022

Build succeeded:

@bors bors bot merged commit 7a94948 into Rust-GCC:master May 26, 2022
GSoC 2022 - Constexpr automation moved this from Reviewer approved to Done May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants