Path::vertexPath

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-04-06 12:36:32 -07:00
parent f48f416b3c
commit 8f0a5e7451
3 changed files with 11 additions and 4 deletions

View File

@ -122,6 +122,8 @@ public:
void checkPrevPath(const StaState *sta) const;
void checkPrevPaths(const StaState *sta) const;
static Path *vertexPath(const Path *path,
const StaState *sta);
static Path *vertexPath(const Path &path,
const StaState *sta);
static Path *vertexPath(const Vertex *vertex,

View File

@ -1023,12 +1023,10 @@ Genclks::updateSrcPathPrevs()
if (!src_path.isNull()) {
const Path *p = &src_path;
while (p) {
Path *src_vpath = Path::vertexPath(p->vertex(this),
p->tag(this), this);
Path *src_vpath = Path::vertexPath(p, this);
Path *prev_path = p->prevPath();
if (prev_path) {
Path *prev_vpath = Path::vertexPath(prev_path->vertex(this),
prev_path->tag(this), this);
Path *prev_vpath = Path::vertexPath(prev_path, this);
src_vpath->setPrevPath(prev_vpath);
src_vpath->setPrevEdgeArc(p->prevEdge(this),
p->prevArc(this), this);

View File

@ -473,6 +473,13 @@ Path::setIsEnum(bool is_enum)
////////////////////////////////////////////////////////////////
Path *
Path::vertexPath(const Path *path,
const StaState *sta)
{
return vertexPath(path->vertex(sta), path->tag(sta), sta);
}
Path *
Path::vertexPath(const Path &path,
const StaState *sta)