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

Make non-vararg dialect ops getter const #100

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

tsymalla
Copy link
Contributor

@tsymalla tsymalla commented Jul 9, 2024

No description provided.

lib/TableGen/Operations.cpp Outdated Show resolved Hide resolved
@tsymalla-AMD tsymalla-AMD changed the title Add const getter for non-vararg dialect ops Make non-vararg dialect ops getter const Jul 10, 2024
Copy link
Member

@Flakebi Flakebi left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

@@ -91,7 +91,7 @@ void createFunctionExample(Module &module, const Twine &name) {
Value *x2 = b.create<xd::Add32Op>(x1, sizeOf32, 11);
Value *x3 = b.create<xd::CombineOp>(x2, x1);
Value *x4 = b.create<xd::IExtOp>(b.getInt64Ty(), x3);
b.create<xd::WriteOp>(x4);
[[maybe_unused]] const xd::WriteOp *x5 = b.create<xd::WriteOp>(x4);
Copy link
Member

Choose a reason for hiding this comment

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

The change here does not do anything?

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 forgot to change it. Will revert that change later and then merge the PR.

@tsymalla-AMD tsymalla-AMD merged commit 8ae2128 into GPUOpen-Drivers:dev Jul 11, 2024
8 checks passed
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.

3 participants