forked from llvm/circt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIRRTL][InferWidths] Handle foreign and prop types uniformly (llvm#5392
) This changes InferWidths to use a common pattern to filter out foreign and property types. The `getBaseType(FIRRTLType)` function now takes a `Type` and returns null if it is not a `FIRRTLType`. `declVars` and all three constrain functions now use `getBaseType` to skip over foreign and property types. This changes the behaviour of `maximumOfTypes` and `unifyTypes`, but this is not a testable code path.
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters