comparison gen/passes/Passes.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 bedf0bfb8fdb
children 6c8af78364f5
comparison
equal deleted inserted replaced
1284:5851c18e4c6d 1285:91d9386d4a5a
5 class FunctionPass; 5 class FunctionPass;
6 } 6 }
7 7
8 // Performs simplifications on runtime calls. 8 // Performs simplifications on runtime calls.
9 llvm::FunctionPass* createSimplifyDRuntimeCalls(); 9 llvm::FunctionPass* createSimplifyDRuntimeCalls();
10 llvm::FunctionPass* createGarbageCollect2Stack();
10 11
11 12
12 #endif 13 #endif