@@ -160,64 +160,19 @@ namespace swift {
160
160
// / Flags for developers
161
161
// /
162
162
163
- // / Whether we are debugging the constraint solver.
164
- // /
165
- // / This option enables verbose debugging output from the constraint
166
- // / solver.
167
- bool DebugConstraintSolver = false ;
168
-
169
- // / Specific solution attempt for which the constraint
170
- // / solver should be debugged.
171
- unsigned DebugConstraintSolverAttempt = 0 ;
172
-
173
- // / Line numbers to activate the constraint solver debugger.
174
- // / Should be stored sorted.
175
- llvm::SmallVector<unsigned , 4 > DebugConstraintSolverOnLines;
176
-
177
163
// / Enable named lazy member loading.
178
164
bool NamedLazyMemberLoading = true ;
179
-
180
- // / Debug the generic signatures computed by the generic signature builder.
181
- bool DebugGenericSignatures = false ;
182
-
183
- // / Triggers llvm fatal_error if typechecker tries to typecheck a decl or an
184
- // / identifier reference with the provided prefix name.
185
- // / This is for testing purposes.
186
- std::string DebugForbidTypecheckPrefix;
187
-
188
- // / Whether to dump debug info for request evaluator cycles.
189
- bool DebugDumpCycles = false ;
190
-
165
+
191
166
// / The path to which we should emit GraphViz output for the complete
192
167
// / request-evaluator graph.
193
168
std::string RequestEvaluatorGraphVizPath;
194
-
195
- // / The upper bound, in bytes, of temporary data that can be
196
- // / allocated by the constraint solver.
197
- unsigned SolverMemoryThreshold = 512 * 1024 * 1024 ;
198
-
199
- unsigned SolverBindingThreshold = 1024 * 1024 ;
200
-
201
- // / The upper bound to number of sub-expressions unsolved
202
- // / before termination of the shrink phrase of the constraint solver.
203
- unsigned SolverShrinkUnsolvedThreshold = 10 ;
204
-
205
- // / Disable the shrink phase of the expression type checker.
206
- bool SolverDisableShrink = false ;
207
-
208
- // / Disable constraint system performance hacks.
209
- bool DisableConstraintSolverPerformanceHacks = false ;
210
-
211
- // / Enable experimental operator designated types feature.
212
- bool EnableOperatorDesignatedTypes = false ;
213
-
169
+
170
+ // / Whether to dump debug info for request evaluator cycles.
171
+ bool DebugDumpCycles = false ;
172
+
214
173
// / Enable SIL type lowering
215
174
bool EnableSubstSILFunctionTypesForFunctionValues = false ;
216
175
217
- // / Enable constraint solver support for experimental
218
- // / operator protocol designator feature.
219
- bool SolverEnableOperatorDesignatedTypes = false ;
220
-
221
176
// / Whether to diagnose an ephemeral to non-ephemeral conversion as an
222
177
// / error.
223
178
bool DiagnoseInvalidEphemeralnessAsError = false ;
@@ -503,6 +458,55 @@ namespace swift {
503
458
// / Indicate that the type checker should skip type-checking non-inlinable
504
459
// / function bodies.
505
460
bool SkipNonInlinableFunctionBodies = false ;
461
+
462
+ // /
463
+ // / Flags for developers
464
+ // /
465
+
466
+ // / Whether we are debugging the constraint solver.
467
+ // /
468
+ // / This option enables verbose debugging output from the constraint
469
+ // / solver.
470
+ bool DebugConstraintSolver = false ;
471
+
472
+ // / Specific solution attempt for which the constraint
473
+ // / solver should be debugged.
474
+ unsigned DebugConstraintSolverAttempt = 0 ;
475
+
476
+ // / Line numbers to activate the constraint solver debugger.
477
+ // / Should be stored sorted.
478
+ llvm::SmallVector<unsigned , 4 > DebugConstraintSolverOnLines;
479
+
480
+ // / Debug the generic signatures computed by the generic signature builder.
481
+ bool DebugGenericSignatures = false ;
482
+
483
+ // / Triggers llvm fatal_error if typechecker tries to typecheck a decl or an
484
+ // / identifier reference with the provided prefix name.
485
+ // / This is for testing purposes.
486
+ std::string DebugForbidTypecheckPrefix;
487
+
488
+ // / The upper bound, in bytes, of temporary data that can be
489
+ // / allocated by the constraint solver.
490
+ unsigned SolverMemoryThreshold = 512 * 1024 * 1024 ;
491
+
492
+ unsigned SolverBindingThreshold = 1024 * 1024 ;
493
+
494
+ // / The upper bound to number of sub-expressions unsolved
495
+ // / before termination of the shrink phrase of the constraint solver.
496
+ unsigned SolverShrinkUnsolvedThreshold = 10 ;
497
+
498
+ // / Disable the shrink phase of the expression type checker.
499
+ bool SolverDisableShrink = false ;
500
+
501
+ // / Enable experimental operator designated types feature.
502
+ bool EnableOperatorDesignatedTypes = false ;
503
+
504
+ // / Disable constraint system performance hacks.
505
+ bool DisableConstraintSolverPerformanceHacks = false ;
506
+
507
+ // / Enable constraint solver support for experimental
508
+ // / operator protocol designator feature.
509
+ bool SolverEnableOperatorDesignatedTypes = false ;
506
510
};
507
511
} // end namespace swift
508
512
0 commit comments