Expose 'TimingType' from TimingArc. (#380)

When using the OpenSTA Liberty file parser as a general-purpose Liberty reader, it's useful to be able to
extract the original `TimingType` for a timing arc, and trivial to support.
This commit is contained in:
Robert O'Callahan
2026-02-26 05:13:51 +13:00
committed by GitHub
parent d1bfb1df2e
commit f0c9971015

View File

@@ -170,6 +170,7 @@ public:
void deleteTimingArc(TimingArc *arc);
TimingArc *findTimingArc(unsigned arc_index);
void setRole(const TimingRole *role);
TimingType timingType() const { return attrs_->timingType(); }
FuncExpr *cond() const { return attrs_->cond(); }
// Cond default is the timing arcs with no condition when there are
// other conditional timing arcs between the same pins.