Skip to content

Conversation

teqdruid
Copy link
Contributor

@teqdruid teqdruid commented Jun 28, 2025

This PR adds support for importing Kanagawa IR into PyCDE and improves the overall pass management and proxy caching in the system.

  • Added a new test file for Kanagawa IR import and lowering.
  • Updated the System and _OpCache functionality to change type hints and weak reference handling.
  • Revised the imported module creation and pass-phase execution logic.

@teqdruid teqdruid requested a review from Copilot June 28, 2025 04:27
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 support for importing Kanagawa IR into PyCDE and improves the overall pass management and proxy caching in the system.

  • Added a new test file for Kanagawa IR import and lowering.
  • Updated the System and _OpCache functionality to change type hints and weak reference handling.
  • Revised the imported module creation and pass-phase execution logic.

Reviewed Changes

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

File Description
frontends/PyCDE/test/test_kanagawa.py Adds a test case for Kanagawa IR import and verifies lowering.
frontends/PyCDE/src/pycde/system.py Updates type hints, refactors pass-phase execution, and weakens proxy usage.
frontends/PyCDE/src/pycde/module.py Adjusts the imported module creation to guard against misuse.
frontends/PyCDE/src/pycde/common.py Updates slots to support weak references.

@teqdruid teqdruid added the PyCDE Python CIRCT Design Entry API label Jun 28, 2025
@teqdruid teqdruid marked this pull request as ready for review June 28, 2025 04:37
This PR adds support for importing Kanagawa IR into PyCDE and improves
the overall pass management and proxy caching in the system.

- Added a new test file for Kanagawa IR import and lowering.
- Updated the System and _OpCache functionality to change type hints and
  weak reference handling.
- Revised the imported module creation and pass-phase execution logic.
@teqdruid teqdruid force-pushed the teqdruid/kng-pycde branch from 0b94cbb to 3f4fbef Compare June 28, 2025 04:54
@teqdruid teqdruid merged commit c5d5093 into main Jun 28, 2025
6 checks passed
@teqdruid teqdruid deleted the teqdruid/kng-pycde branch June 28, 2025 05:02
TaoBi22 pushed a commit to TaoBi22/circt that referenced this pull request Jul 17, 2025
This PR adds support for importing Kanagawa IR into PyCDE and improves
the overall pass management and proxy caching in the system.

- Added a new test file for Kanagawa IR import and lowering.
- Updated the System and _OpCache functionality to change type hints and
  weak reference handling.
- Revised the imported module creation and pass-phase execution logic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyCDE Python CIRCT Design Entry API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant