mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-25 16:13:14 +01:00
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.
14 lines
243 B
C++
14 lines
243 B
C++
#ifndef LDC_PASSES_H
|
|
#define LDC_PASSES_H
|
|
|
|
namespace llvm {
|
|
class FunctionPass;
|
|
}
|
|
|
|
// Performs simplifications on runtime calls.
|
|
llvm::FunctionPass* createSimplifyDRuntimeCalls();
|
|
llvm::FunctionPass* createGarbageCollect2Stack();
|
|
|
|
|
|
#endif
|