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

Rename IntLiteral to IntValue. #4475

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

zygoloid
Copy link
Contributor

@zygoloid zygoloid commented Nov 2, 2024

This instruction represents integer values, whether they come from literals or calculations, so it the old name is inaccurate. I also plan to rename BigInt to IntLiteral based on recent discussion and this change aims to avoid confusion stemming from the same name being used for two different things.

I'm not renaming FloatLiteral because recent discussion suggests we may want distinct FloatLiteral versus FloatValue representations in SemIR.

This instruction represents integer values, whether they come from
literals or calculations, so it the old name is inaccurate. I also plan
to rename `BigInt` to `IntLiteral` based on recent discussion and this
change aims to avoid confusion stemming from the same name being used
for two different things.

I'm not renaming FloatLiteral because recent discussion suggests we may
want distinct FloatLiteral versus FloatValue representations in SemIR.
Copy link
Contributor

@chandlerc chandlerc left a comment

Choose a reason for hiding this comment

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

Spot checked, and looks good.

LGTM for merging as it seems easy to just do another rename even if we decide a different name would be better, and this unblocks subsequent renames / avoids merge conflicts.

@zygoloid zygoloid added this pull request to the merge queue Nov 2, 2024
Merged via the queue into carbon-language:trunk with commit db76e81 Nov 2, 2024
10 checks passed
@zygoloid zygoloid deleted the toolchain-intvalue branch November 2, 2024 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants