mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 10:53:14 +01:00
`available_externally` linkage. This allows the inliner to inline functions from other modules while telling the code generator to ignore those functions (treat them as declarations) Still generates a few extra `TypeInfo`s and strings... Disabled when generating debug info because I don't really understand it, and it doesn't like this.
19 lines
340 B
C++
19 lines
340 B
C++
#ifndef LDC_GEN_OPTIMIZER_H
|
|
#define LDC_GEN_OPTIMIZER_H
|
|
|
|
namespace llvm { class Module; }
|
|
|
|
bool ldc_optimize_module(llvm::Module* m);
|
|
|
|
// Determines whether the inliner will run in the -O<N> list of passes
|
|
bool doInline();
|
|
// Determines whether the inliner will be run at all.
|
|
bool willInline();
|
|
|
|
int optLevel();
|
|
|
|
bool optimize();
|
|
|
|
#endif
|
|
|