-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add amdaie.flow
for packet flow lowering
#815
Conversation
compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIEAssignChannels.cpp
Outdated
Show resolved
Hide resolved
auto ui8ty = | ||
IntegerType::get(rewriter.getContext(), 8, IntegerType::Unsigned); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull this out of the walk.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please deposit $5 in the auto
jar and please remove auto
(yes I know I'm being a pedant...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, here I think it's fine as the type is clear from the context. You see this all over IREE/LLVM and is okayed by the style guide we follow: https://google.github.io/styleguide/cppguide.html#Type_deduction
compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIELowerToAIE.cpp
Outdated
Show resolved
Hide resolved
72bedbe
to
8a8f85f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more nits to address before merging. LGTM otherwise.
compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIEAssignConnectionTypes.cpp
Outdated
Show resolved
Hide resolved
compiler/plugins/target/AMD-AIE/iree-amd-aie/Transforms/AMDAIEConnectionToFlow.cpp
Outdated
Show resolved
Hide resolved
8a8f85f
to
7382ded
Compare
This PR introduces the
amdaie.flow
operation (in consistency withaie.flow
). This operation represents connections between ports/channels on tiles in the array and is lowered toaie.flow
for routing. This idea is to loweramdaie.connection
toamdaie.flow
+ DMA operations, however this PR goes halfway by creatingamdaie.flow
operations, while still keeping a reference insideamdaie.connection
as the latter is still needed insideLowerToAIE
for lowering to the AIE dialect DMA operations. This will be cleaned up in the future, but for now, this enables me to start adding routes for control packets in conjunction with data routes for #714.