Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIRRTL] Add layer-associated Probes to LowerLayers pass #6554

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions include/circt/Dialect/FIRRTL/FIRRTLTypesImpl.td
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,12 @@ def RefImpl : FIRRTLImplType<"Ref",
let extraClassDeclaration = [{
/// Return the recursive properties of the type.
RecursiveTypeProperties getRecursiveTypeProperties() const;

RefType removeLayer() const {
if (getLayer() == nullptr)
return *this;
return get(getType(), getForceable());
}
Comment on lines +412 to +416
Copy link
Member Author

Choose a reason for hiding this comment

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

This was missing and is the cleanest way to remove a layer. Good thinking.

}];
}

Expand Down
Loading
Loading