-
Notifications
You must be signed in to change notification settings - Fork 568
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 support to LEF58_MAXSPACING in ODB and DRT #5287
Add support to LEF58_MAXSPACING in ODB and DRT #5287
Conversation
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
…te/OpenROAD into TR-maxspacing
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: Osama <[email protected]>
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.
clang-tidy made some suggestions
{ | ||
_dbTechLayerMaxSpacingRule* obj = (_dbTechLayerMaxSpacingRule*) this; | ||
|
||
obj->cut_class_ = cut_class; |
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.
warning: parameter 'cut_class' is passed by value and only copied once; consider moving it to avoid unnecessary copies [performance-unnecessary-value-param]
src/odb/src/db/dbTechLayerMaxSpacingRule.cpp:34:
+
+ #include <utility>
obj->cut_class_ = cut_class; | |
obj->cut_class_ = std::move(cut_class); |
#include "odb/db.h" | ||
#include "odb/lefin.h" | ||
|
||
using namespace odb; |
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.
warning: do not use namespace using-directives; use using-declarations instead [google-build-using-namespace]
using namespace odb;
^
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: Osama <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: Osama <[email protected]>
Signed-off-by: Osama <[email protected]>
Signed-off-by: Osama <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
@maliberty Passes all CIs. Ready for review |
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.
clang-tidy made some suggestions
Please resolve the clang-tidy |
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'll review the KDTree once I understand why it is necessary
for (auto [obj, box] : vias) { | ||
via_positions.emplace_back(box.xCenter(), box.yCenter()); | ||
} | ||
KDTree tree(via_positions); |
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.
Why not use a boost rtree?
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
@maliberty Can we merge this? |
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
Signed-off-by: osamahammad21 <[email protected]>
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.
clang-tidy made some suggestions
#include "frBaseTypes.h" | ||
#include "odb/geom.h" | ||
|
||
using odb::Orientation2D; |
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.
warning: using declarations in the global namespace in headers are prohibited [google-global-names-in-headers]
using odb::Orientation2D;
^
#include "odb/geom.h" | ||
|
||
using odb::Orientation2D; | ||
using odb::Point; |
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.
warning: using declarations in the global namespace in headers are prohibited [google-global-names-in-headers]
using odb::Point;
^
|
||
void radiusSearchHelper(KDTreeNode* node, | ||
const Point& target, | ||
const frSquaredDistance radius_square, |
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.
warning: parameter 'radius_square' is const-qualified in the function declaration; const-qualification of parameters only has an effect in function definitions [readability-avoid-const-params-in-decls]
const frSquaredDistance radius_square, | |
frSquaredDistance radius_square, |
In this PR: