mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Implement inline scopes for the performance inliner.
Mandatory-inlined (aka transparent functions) are still treated as if they had the location and scope of the call site. <rdar://problem/14845844> Support inline scopes once we have an optimizing SIL-based inliner Patch by Adrian Prantl. Swift SVN r18835
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "sil-module"
|
||||
#include "swift/SIL/SILDebugScope.h"
|
||||
#include "swift/SIL/SILModule.h"
|
||||
#include "swift/SIL/SILExternalSource.h"
|
||||
#include "swift/SIL/SILVisitor.h"
|
||||
@@ -232,8 +233,10 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
|
||||
return fn;
|
||||
}
|
||||
|
||||
return SILFunction::create(*this, linkage, name, type, nullptr,
|
||||
loc, isBareSILFunction, isTransparent);
|
||||
auto fn = SILFunction::create(*this, linkage, name, type, nullptr,
|
||||
loc, isBareSILFunction, isTransparent);
|
||||
fn->setDebugScope(new (*this) SILDebugScope(loc, *fn));
|
||||
return fn;
|
||||
}
|
||||
|
||||
SILFunction *SILModule::getOrCreateSharedFunction(SILLocation loc,
|
||||
|
||||
Reference in New Issue
Block a user