|
Revision 1482:d9c5f5a43403, 340 bytes
(checked in by Frits van Bommel <fvbommel wxs.nl>, 3 years ago)
|
Run semantic3 on imported modules, and emit new symbols with
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 TypeInfos and strings...
Disabled when generating debug info because I don't really understand it, and it
doesn't like this.
|
| Line | |
|---|
| 1 |
#ifndef LDC_GEN_OPTIMIZER_H |
|---|
| 2 |
#define LDC_GEN_OPTIMIZER_H |
|---|
| 3 |
|
|---|
| 4 |
namespace llvm { class Module; } |
|---|
| 5 |
|
|---|
| 6 |
bool ldc_optimize_module(llvm::Module* m); |
|---|
| 7 |
|
|---|
| 8 |
// Determines whether the inliner will run in the -O<N> list of passes |
|---|
| 9 |
bool doInline(); |
|---|
| 10 |
// Determines whether the inliner will be run at all. |
|---|
| 11 |
bool willInline(); |
|---|
| 12 |
|
|---|
| 13 |
int optLevel(); |
|---|
| 14 |
|
|---|
| 15 |
bool optimize(); |
|---|
| 16 |
|
|---|
| 17 |
#endif |
|---|