Commit Graph

6 Commits

Author SHA1 Message Date
fzi-hielscher 7690177154
[NFCI][Transforms] Refactor TableGen Pass includes (#7173) 2024-06-14 19:13:15 +02:00
Martin Erhart ad148fb46c [HW] Use free variants of isa/cast/dyn_cast
Refer to https://mlir.llvm.org/deprecation/
2024-04-28 16:41:57 +02:00
Andrew Lenharth 3837b1057c [NFCI] Don't clone arith dialect attrs into comb. Comb doesn't know about these. 2024-01-18 12:01:17 -06:00
Morten Borup Petersen c368ec0098 [Transforms] Also convert constants in `map-arith-to-comb` 2023-10-03 12:30:55 +00:00
Marco Balboni e8ec7d73e3
[LLVM] Bump to e105141 (#5414)
* Ensure the ControlFlow dialect is registered in the context where needed and linked against (not sure where exactly this stems from)
* LLVM IR cttz and ctlz intrinsics moved from undef to poison and take an attribute instead of value now: https://reviews.llvm.org/D151692
* Function inliner extension is a promised interface: https://reviews.llvm.org/D120368
* New replaceOp added to Rewriter: https://reviews.llvm.org/D152814

---------

Co-authored-by: Martin Erhart <maerhart@outlook.com>
2023-06-21 13:20:27 +02:00
Morten Borup Petersen 5a1f999604
[MapArith] Introduce `--map-arith-to-comb` pass (#5297)
Adds a pass which does a simple `arith` to `comb` mapping. The intention of this pass is mainly to get code out of Handshake (and wherever else we do some ad-hoc, simple arith-to-comb mapping/HLS), thus allowing integration testing of DC flows (refresher: handshake-to-dc lowers handshake ops to a combination of `dc` and `arith`).

This **does not** intend to be the definitive lowering/HLS pass of `arith` operations (hence the name "map" instead of e.g. "lower"). See it more as a temporary pass to provide this kind of functionality until we have an operator library + library mapping pass.

Currently, this pass strictly does operation mapping. If needed, `index`-type conversion could also be moved to this pass (e.g. setting `index` type width as a parameter of the pass).
2023-06-06 13:19:38 +02:00