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

Minor AIRLowering refactor #647

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Minor AIRLowering refactor #647

merged 4 commits into from
Jul 3, 2024

Conversation

fifield
Copy link
Collaborator

@fifield fifield commented Jul 3, 2024

This is two cleanups I've had sitting in branches for a while:

func.func @launch_0(%arg0: memref<16xf16>, %arg1: memref<16xf16>) {
%c2 = arith.constant 2 : index
%c4 = arith.constant 4 : index
air.launch (%arg2, %arg3, %arg4) in (%arg5=%c4, %arg6=%c2, %arg7=%c2) args(%arg8=%arg0, %arg9=%arg1) : memref<16xf16>, memref<16xf16> {
air.dma_memcpy_nd (%arg9[] [] [], %arg8[] [] []) : (memref<16xf16>, memref<16xf16>)
Copy link
Collaborator Author

@fifield fifield Jul 3, 2024

Choose a reason for hiding this comment

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

When cloning ops in a conversion pattern, the new op must be legalizable. This one isn't because it's a L3->L3 copy which currently returns failure() in the dma_memcpy_nd conversion pattern. So just remove it since it's not important to the test.

@fifield fifield requested a review from erwei-xilinx July 3, 2024 19:39
@fifield fifield enabled auto-merge (squash) July 3, 2024 21:51
@fifield fifield merged commit 7dddfc3 into Xilinx:main Jul 3, 2024
11 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.

1 participant