Skip to content

Adds stream interface for parseLibertyFile and readLibertyFile#375

Open
hongted wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
hongted:stream_liberty
Open

Adds stream interface for parseLibertyFile and readLibertyFile#375
hongted wants to merge 2 commits into
The-OpenROAD-Project:masterfrom
hongted:stream_liberty

Conversation

@hongted

@hongted hongted commented Jun 23, 2026

Copy link
Copy Markdown

Follow-up to #350

Signed-off-by: Ethan Mahintorabi <ethanmoon@google.com>
@CLAassistant

CLAassistant commented Jun 23, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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

Copy link
Copy Markdown

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 introduces the ability to parse and read Liberty files directly from an input stream (std::istream) across the Sta, LibertyParser, and LibertyReader classes, supported by a new unit test for in-memory parsing. It also applies widespread formatting updates. The review feedback points out a few minor issues to address: a misleading parameter name filename for a stream reference in LibertyReaderPvt.hh, a redundant semicolon in LibertyReader.cc, and grammatical typos in the comments of Sta.hh and LibertyParser.hh.

Comment thread liberty/LibertyReaderPvt.hh Outdated
Comment thread liberty/LibertyReader.cc Outdated
Comment thread include/sta/Sta.hh Outdated
Comment thread liberty/LibertyParser.hh Outdated
@QuantamHD

Copy link
Copy Markdown
Contributor

The PR includes a lot of white space changes due to clang format. You might want to try to break those changes up from the is PR.

Signed-off-by: Ted Hong <tedhong@google.com>
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.

3 participants