Skip to content

[SandboxIR][Tracker] Track Instruction::moveBefore() #99568

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

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

vporpo
Copy link
Contributor

@vporpo vporpo commented Jul 18, 2024

This implements tracking of moving instrs with moveBefore().

@vporpo
Copy link
Contributor Author

vporpo commented Jul 18, 2024

Ah there is also Instruction::moveAfter() that can be used to move instructions. I will add a test for it too.

EXPECT_EQ(&*It++, Add0);
EXPECT_EQ(&*It++, Ret);
EXPECT_EQ(It, BB->end());
// Check revert().
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: this comment is inconsistently applied

Track instruction movement. This supports both moveBefore() and moveAfter().
@vporpo vporpo merged commit cbbd153 into llvm:main Jul 19, 2024
7 checks passed
yuxuanchen1997 pushed a commit that referenced this pull request Jul 25, 2024
This implements tracking of moving instrs with `moveBefore()`.
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.

2 participants