mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SourceKit] Add cancellation points for 'compile' requests
After each stage of the compilation pipeline before the code generation. Sema, SILGen, SILOptimization, SILLowering, IRGen.
This commit is contained in:
@@ -1368,6 +1368,10 @@ bool CompilerInstance::performSILProcessing(SILModule *silModule) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool CompilerInstance::isCancellationRequested() const {
|
||||
auto flag = getASTContext().CancellationFlag;
|
||||
return flag && flag->load(std::memory_order_relaxed);
|
||||
}
|
||||
|
||||
const PrimarySpecificPaths &
|
||||
CompilerInstance::getPrimarySpecificPathsForWholeModuleOptimizationMode()
|
||||
|
||||
Reference in New Issue
Block a user