Skip to content

Conversation

uenoku
Copy link
Member

@uenoku uenoku commented Jul 1, 2025

Add a new method to InstancePathCache that concatenates two instance paths. This complements the existing prependInstance and appendInstance methods, providing a more complete API for manipulating instance paths.

Add a new method to InstancePathCache that concatenates two instance paths.
This complements the existing prependInstance and appendInstance methods,
providing a more complete API for manipulating instance paths.
@uenoku uenoku requested a review from darthscsi as a code owner July 1, 2025 00:56
@uenoku uenoku requested a review from Copilot July 1, 2025 00:57
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a concatPath method to InstancePathCache to enable concatenating two instance paths, complementing the existing prepend and append methods.

  • Renames and extends the unit test to validate concatPath functionality.
  • Implements concatPath in the source and declares it in the header.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
unittests/Dialect/HW/InstancePathTest.cpp Updated test name and added validation for concatPath
lib/Support/InstanceGraph.cpp Added the concatPath implementation
include/circt/Support/InstanceGraph.h Declared the new concatPath API

@uenoku uenoku merged commit d40693a into llvm:main Jul 1, 2025
7 checks passed
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
Add a new method to InstancePathCache that concatenates two instance paths.
This complements the existing prependInstance and appendInstance methods,
providing a more complete API for manipulating instance paths.
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.

1 participant