From f0c9971015015fa9cded7d2c1427bee55718ddfb Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Thu, 26 Feb 2026 05:13:51 +1300 Subject: [PATCH] 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. --- include/sta/TimingArc.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/include/sta/TimingArc.hh b/include/sta/TimingArc.hh index 347e37f1..caccedf1 100644 --- a/include/sta/TimingArc.hh +++ b/include/sta/TimingArc.hh @@ -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.