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

[DT][NFC] Localize CPU specific encoding materialization logic. #19452

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

hanhanW
Copy link
Contributor

@hanhanW hanhanW commented Dec 11, 2024

The revision moves the CPU materialization logic from Dialect/Codegen/Utils/Utils.[h|cpp] to CPUEncodingExternalModels. They were public methods during transition states. After all the CPU layout attributes are implemented, we no longer need to expose them to the public.

Additionally, it removes the outdated logic from MaterializeContractionOp pattern. And it removes the transposeNarrowN input argument from lowerContractionOpWithEncoding method because all the CPU backends enable the transposeNarrowN feature.

The revision moves the CPU materialization logic from
Dialect/Codegen/Utils/Utils.[h|cpp] to CPUEncodingExternalModels. They
were public methods during transition states. After all the CPU
layout attributes are implemented, we no longer need to expose them to
public.

Additionally, it removes the outdated logic from MaterializeContraction
pattern. And it removes the `transposeNarrowN` input argument from
lowerContractionOpWithEncoding method because all the CPU backends
enable the transposeNarrowN feature.

Signed-off-by: hanhanW <hanhan0912@gmail.com>
Copy link
Contributor

@lialan lialan left a comment

Choose a reason for hiding this comment

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

The refactoring is LGTM.

@hanhanW hanhanW enabled auto-merge (squash) December 13, 2024 03:31
@hanhanW hanhanW merged commit ad938ae into iree-org:main Dec 13, 2024
38 checks passed
@hanhanW hanhanW deleted the data-tiling-cleanups-3 branch December 13, 2024 04:04
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