diff options
author | Ben Gamari <bgamari.foss@gmail.com> | 2015-10-02 15:49:24 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-10-02 16:34:21 +0200 |
commit | 953940850f7f2aaf53d91e882a3216bfcf30c8f5 (patch) | |
tree | cf19fa6ee02e85c007b4c9d1caacd9c040023d10 /libraries/ghc-prim | |
parent | bd41eb2ad9507d3f408e25c8dece61f389f11a2a (diff) | |
download | haskell-953940850f7f2aaf53d91e882a3216bfcf30c8f5.tar.gz |
LLVM: Factor out accumulation of LLVM statements and variables
The LLVM code generator currently has a rather large amount of
boilerplate devoted to piping around and building up various AST
elements. This is rather unfortunate for a language which prides itself
on ease of abstraction and detracts from readability.
Here I continue a refactoring that I originally suggested in D991, using
`WriterT` to factor out this pattern. `WriterT` is in general a bit
problematic from an evaluation perspective, but the expressions here are
small enough that it should be a problem in practice.
Test Plan: Validate
Reviewers: austin
Reviewed By: austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1286
Diffstat (limited to 'libraries/ghc-prim')
0 files changed, 0 insertions, 0 deletions