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

[CIR][ThroughMLIR] Support lowering ptrStrideOp with loadOp or storeOp to memref #584

Closed
wants to merge 0 commits into from

Conversation

ShivaChen
Copy link
Contributor

This commit introduce CIRPtrStrideOpLowering to lower the following pattern to memref load or store.

Rewrite
%0 = cir.cast(array_to_ptrdecay, %base)
%1 = cir.ptr_stride(%0, %index)
cir.load %1
To
memref.load %base[%index]

@ShivaChen ShivaChen closed this May 6, 2024
@ShivaChen ShivaChen force-pushed the ptrStride-lowering branch from bf450e5 to f690ca9 Compare May 6, 2024 05:26
@ShivaChen ShivaChen deleted the ptrStride-lowering branch May 6, 2024 05:31
@ShivaChen ShivaChen restored the ptrStride-lowering branch May 6, 2024 05:32
@ShivaChen
Copy link
Contributor Author

ShivaChen commented May 6, 2024

I was rebasing to update the cir.const format changes in recent main branch.
Perhaps I pushed the wrong button and it closed.

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.

1 participant