Skip to content

C++: add range analysis diff test #8665

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rdmarsh2
Copy link
Contributor

@rdmarsh2 rdmarsh2 commented Apr 4, 2022

No description provided.

@github-actions github-actions bot added the C++ label Apr 4, 2022
@rdmarsh2 rdmarsh2 marked this pull request as ready for review April 13, 2022 16:41
@rdmarsh2 rdmarsh2 requested a review from a team as a code owner April 13, 2022 16:41
MathiasVP
MathiasVP previously approved these changes Apr 17, 2022
Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

A couple of non-blocking questions, but otherwise LGTM!

@@ -1,4 +1,4 @@
template<typename T> void mod(T value);
/*template<typename T> void mod(T value);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this still be commented out?

IR::Operand asOperand() { none() }
}

class SsaInstructionVariable extends SsaVariable, TSsaInstruction {
Copy link
Contributor

Choose a reason for hiding this comment

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

This class can probably be private, no?

final override IR::Instruction asInstruction() { result = instr }
}

class SsaOperand extends SsaVariable, TSsaOperand {
Copy link
Contributor

Choose a reason for hiding this comment

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

This class can be private, right? And could we call it SsaOperandVariable for consistency?

rdmarsh2 added 6 commits May 4, 2022 14:58
 This makes inexact memory operands into their own SSA variables in the
Semantic interface, which resolves an issue with phi nodes losing
inexact operands (e.g. the unknown-size variable for parameter
indirections).
@rdmarsh2 rdmarsh2 force-pushed the rdmarsh2/sem-range-diff-test branch from 2d7a7d3 to 9f5cd71 Compare May 4, 2022 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants