[NFC][FIRRTL] Don't name unneeded fields in canonicalization patterns.

This commit is contained in:
Andrew Lenharth 2021-08-27 11:21:22 -05:00
parent 7eb47cf637
commit 972b4fb316
1 changed files with 3 additions and 3 deletions

View File

@ -90,20 +90,20 @@ def EmptyNode : Pat<
// regreset(clock, invalidvalue, resetValue) -> reg(clock)
def RegresetWithInvalidReset : Pat<
(RegResetOp $clock, (InvalidValueOp), $resetValue, $name, $annotations),
(RegResetOp $clock, (InvalidValueOp), $_, $name, $annotations),
(RegOp $clock, $name, $annotations),
[]>;
// regreset(clock, reset, invalidvalue) -> reg(clock)
// This is handled by the `RemoveReset` pass in the original Scala code.
def RegresetWithInvalidResetValue : Pat<
(RegResetOp $clock, $reset, (InvalidValueOp), $name, $annotations),
(RegResetOp $clock, $_, (InvalidValueOp), $name, $annotations),
(RegOp $clock, $name, $annotations),
[]>;
// regreset(clock, constant_zero, resetValue) -> reg(clock)
def RegresetWithZeroReset : Pat<
(RegResetOp $clock, $reset, $resetValue, $name, $annotations),
(RegResetOp $clock, $reset, $_, $name, $annotations),
(RegOp $clock, $name, $annotations), [(ZeroConstantOp $reset)]>;
// Return the width of an operation result as an integer attribute. This is