Mercurial > projects > ldc
view ir/irmodule.h @ 1285:91d9386d4a5a
Implement another D-specific pass: -dgc2stack
This one promotes GC allocations to stack memory when it can determine it's safe
to do so.
Not all GC calls are recognized yet (in fact only one *is* recognized for now).
Needs metadata, so disabled for LLVM versions that don't support it.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 02 May 2009 11:58:50 +0200 |
parents | 1714836f2c0b |
children |
line wrap: on
line source
#ifndef LDC_IR_IRMODULE_H #define LDC_IR_IRMODULE_H #include "ir/ir.h" struct Module; struct IrModule : IrBase { IrModule(Module* module, const char* srcfilename); virtual ~IrModule(); Module* M; LLGlobalVariable* fileName; llvm::DICompileUnit diCompileUnit; }; #endif