Mercurial > projects > ldc
view gen/passes/Passes.h @ 1506:76936858d1c6
Return `void*` from _d_allocclass so LLVM doesn't do weird things with it...
This allows `-instcombine` followed by `-gvn` to do devirtualization, so add
`-gvn` in strategic places in the default pass order.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sat, 20 Jun 2009 11:39:13 +0200 |
parents | defafbabbe32 |
children | c88b16d4a13c |
line wrap: on
line source
#ifndef LDC_PASSES_H #define LDC_PASSES_H #include "gen/metadata.h" namespace llvm { class FunctionPass; class ModulePass; } // Performs simplifications on runtime calls. llvm::FunctionPass* createSimplifyDRuntimeCalls(); #ifdef USE_METADATA llvm::FunctionPass* createGarbageCollect2Stack(); llvm::ModulePass* createStripMetaData(); #endif #if LLVM_REV >= 68940 llvm::ModulePass* createStripExternalsPass(); #endif #endif