Skip to content

Make non-streaming LLVM and C backends streaming

Ömer Sinan Ağacan requested to merge osa1/ghc:remove_stream_collect into master

This adds a Stream.consume function, uses it in LLVM and C code generators, and removes the use of Stream.collect function which was used to collect streaming Cmm generation results into a list.

LLVM and C backends now properly use streamed Cmm generation, instead of collecting Cmm groups into a list before generating LLVM/C code.

Ping @bgamari @AndreasK

Edited by Ömer Sinan Ağacan

Merge request reports