kernel/mem: Add a coalesce_inits helper.
authorMarcelina Kościelnicka <mwk@0x04.net>
Mon, 12 Jul 2021 18:04:59 +0000 (20:04 +0200)
committerMarcelina Kościelnicka <mwk@0x04.net>
Tue, 13 Jul 2021 13:59:11 +0000 (15:59 +0200)
commit8bf9cb407d929255ae985b33a537ac6d489553c5
tree7279251ab076a7d0bf8fc24117bad5bb087caa5e
parent4379375d899b917d3f6ed00db64ab52c35f4f004
kernel/mem: Add a coalesce_inits helper.

While this helper is already useful to squash sequential initializations
into one in cxxrtl, its main purpose is to squash overlapping masked memory
initializations (when they land) and avoid having to deal with them in
cxxrtl runtime.
backends/cxxrtl/cxxrtl_backend.cc
kernel/mem.cc
kernel/mem.h