mirror of https://github.com/llvm/circt.git
[NFC][FIRRTL] Don't name unneeded fields in canonicalization patterns.
This commit is contained in:
parent
7eb47cf637
commit
972b4fb316
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue