Skip to content

odb: Expose hpwl api as public in WireLengthEvaluator and fix issue in reportEachNetHpwl.#10214

Merged
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hongted:hpwl-api
Apr 24, 2026
Merged

odb: Expose hpwl api as public in WireLengthEvaluator and fix issue in reportEachNetHpwl.#10214
maliberty merged 1 commit into
The-OpenROAD-Project:masterfrom
hongted:hpwl-api

Conversation

@hongted

@hongted hongted commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

This will enable custom reporting of hpwl.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the WireLengthEvaluator class by making the hpwl method public. Feedback indicates that the implementation lacks initialization for output parameters in specific cases, which poses a risk now that the method is accessible externally. Additionally, a bug involving reference aliasing in an existing caller was identified, suggesting a need for API refactoring to return a struct or pair for improved safety.

Comment thread src/odb/include/odb/util.h
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

…n reportEachNetHpwl.

Signed-off-by: Ted Hong <tedhong@google.com>
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@AcKoucher AcKoucher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks okay to me.

In which context do you intend to use the custom reporting?

Comment thread src/odb/src/db/util.cpp
Comment thread src/odb/src/db/util.cpp
@AcKoucher

Copy link
Copy Markdown
Contributor

The check failure looks like some IT thing. I set the pipeline to run again.

@hongted hongted changed the title odb: Expose hpwl api as public in WireLengthEvaluator. odb: Expose hpwl api as public in WireLengthEvaluator and fix issue in reportEachNetHpwl. Apr 24, 2026
@maliberty maliberty enabled auto-merge April 24, 2026 21:27
@maliberty maliberty merged commit 20f11d7 into The-OpenROAD-Project:master Apr 24, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants