-
Notifications
You must be signed in to change notification settings - Fork 94
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
use structs instead of pairs #719
Conversation
f7517ad
to
eb5b8a6
Compare
eb5b8a6
to
de763db
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.
I haven't finished with the review yet (it's a big one), but this is a fantastic refactor, long overdue. I wanted to give you a heads-up while I finish the review, I see you're changing a lot of signed integers to unsigned ones. The general preference is to use signed types unless there's a good reason not to.
f186a1d
to
2ccf0ed
Compare
2ccf0ed
to
0c02722
Compare
a849f5a
to
a6611b7
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.
Thanks for the cleanup!
@@ -232,24 +259,74 @@ template <> struct DenseMapInfo<xilinx::AIE::ObjectFifoAcquireOp> { | |||
} // namespace llvm | |||
|
|||
namespace llvm { | |||
using namespace xilinx::AIE; |
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.
Is 'using namespace' legit for headers?
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.
whoops
return std::tie(col, row) != std::tie(rhs.col, rhs.row); | ||
} | ||
|
||
inline bool operator<(const TileID &rhs) const { |
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.
This probably deserves a comment.
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.
This is a good and much needed cleanup! Thank you! :)
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.
This is so much clearer!
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.
Looks great! Thanks again!
Outstanding TODOs:
|
601b14b
to
07e4d24
Compare
Let's use structs instead of pairs so that semantic info is preserved (and code is more readable).