fabianschuiki / moore

A hardware compiler based on LLHD and CIRCT
http://www.llhd.io
Apache License 2.0
243 stars 31 forks source link

Factor mir rvalue/lvalue builders into one single builder #209

Open fabianschuiki opened 3 years ago

fabianschuiki commented 3 years ago

The lower::rvalue::Builder and lower::lvalue::Builder structs are identical, except for their handling of build. Factor these out into a single lower::Builder, with separate build_rvalue and build_lvalue functions.