Skip to content

[SandboxIR] Implement getNumBits for Instructions #110748

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 2 commits into from
Oct 1, 2024

Conversation

Sterling-Augustine
Copy link
Contributor

This also moves the other getNumbits test into UtilsTest.cc where it belongs.

Copy link
Contributor

@vporpo vporpo left a comment

Choose a reason for hiding this comment

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

Btw. please also move the remaining utils test to UtilsTest.cpp in a separate PR.


// getNumBits for scalars via the Instruction overload
EXPECT_EQ(
sandboxir::Utils::getNumBits(cast<sandboxir::Instruction>(F->getArg(0))),
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 trigger an assertion because F->getArg(0) is not a sandboxir::Instruction.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had been running the SandboxVectorizerTests, not the SandboxIR tests.

Fixed.

Copy link
Contributor

@vporpo vporpo left a comment

Choose a reason for hiding this comment

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

LG, thanks!

@Sterling-Augustine Sterling-Augustine merged commit 2f43272 into llvm:main Oct 1, 2024
5 of 7 checks passed
Sterling-Augustine added a commit to Sterling-Augustine/llvm-project that referenced this pull request Oct 3, 2024
This also moves the other getNumbits test into UtilsTest.cc where it
belongs.
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