Commit Graph

4 Commits

Author SHA1 Message Date
Martin Erhart f396653c7c [Arc] Use free variants of isa/cast/dyn_cast
Refer to https://mlir.llvm.org/deprecation/
2024-04-28 15:36:36 +02:00
Martin Erhart 089850fc53 [Arc] Include pass base only where needed
Currently, all the pass base classes are included in all files
implementing one specific pass. This aims to reduce the amount of
unnecessarily included code.
2023-09-16 17:56:04 +02:00
Andrew Lenharth 64e66c8edc [NFC] fix warnings 2023-03-21 22:59:33 -05:00
Fabian Schuiki caca022b1c
[Arc] Add variadic op simplification pass (#4724)
Add the `SimplifyVariadicOps` pass which takes the common combinational
operations and converts them from their variadic representation into a
chain of binary operations. The pass reorders the variadic operands such
that they appear in the order in which their definitions appear in the
basic block. The binary operations are then inserted as soon as both
their operands become available. This distributes the operations through
the block and reduces the lifetimes of the original op's operands.
2023-03-15 21:43:09 -07:00