37 references to PlanCompilerPhase
System.Data.Entity (37)
System\Data\Query\PlanCompiler\PlanCompiler.cs (27)
94
private
PlanCompilerPhase
m_phase;
241
internal bool IsPhaseNeeded(
PlanCompilerPhase
phase)
250
internal void MarkPhaseAsNeeded(
PlanCompilerPhase
phase)
291
m_neededPhases = (1 << (int)
PlanCompilerPhase
.PreProcessor) |
295
(1 << (int)
PlanCompilerPhase
.ProjectionPruning) |
297
(1 << (int)
PlanCompilerPhase
.Transformations) |
299
(1 << (int)
PlanCompilerPhase
.CodeGen);
304
beforePreProcessor = SwitchToPhase(
PlanCompilerPhase
.PreProcessor);
308
if (IsPhaseNeeded(
PlanCompilerPhase
.AggregatePushdown))
310
beforeAggregatePushdown = SwitchToPhase(
PlanCompilerPhase
.AggregatePushdown);
314
if (IsPhaseNeeded(
PlanCompilerPhase
.Normalization))
316
beforeNormalization = SwitchToPhase(
PlanCompilerPhase
.Normalization);
321
if (IsPhaseNeeded(
PlanCompilerPhase
.NTE))
323
beforeNTE = SwitchToPhase(
PlanCompilerPhase
.NTE);
328
if (IsPhaseNeeded(
PlanCompilerPhase
.ProjectionPruning))
330
beforeProjectionPruning1 = SwitchToPhase(
PlanCompilerPhase
.ProjectionPruning);
335
if (IsPhaseNeeded(
PlanCompilerPhase
.NestPullup))
337
beforeNestPullup = SwitchToPhase(
PlanCompilerPhase
.NestPullup);
342
beforeProjectionPruning2 = SwitchToPhase(
PlanCompilerPhase
.ProjectionPruning);
347
if (IsPhaseNeeded(
PlanCompilerPhase
.Transformations))
353
beforeProjectionPruning3 = SwitchToPhase(
PlanCompilerPhase
.ProjectionPruning);
360
if (IsPhaseNeeded(
PlanCompilerPhase
.JoinElimination))
362
beforeJoinElimination1 = SwitchToPhase(
PlanCompilerPhase
.JoinElimination);
367
beforeJoinElimination2 = SwitchToPhase(
PlanCompilerPhase
.JoinElimination);
377
beforeCodeGen = SwitchToPhase(
PlanCompilerPhase
.CodeGen);
412
dumpString = SwitchToPhase(
PlanCompilerPhase
.Transformations);
423
private string SwitchToPhase(
PlanCompilerPhase
newPhase)
System\Data\Query\PlanCompiler\PreProcessor.cs (9)
193
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.NTE);
1108
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.Normalization);
1176
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.NestPullup);
1177
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.Normalization);
2061
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.NestPullup);
2188
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.JoinElimination);
2194
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.Normalization);
2207
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.JoinElimination);
2389
this.m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.AggregatePushdown);
System\Data\Query\PlanCompiler\SubqueryTrackingVisitor.cs (1)
176
m_compilerState.MarkPhaseAsNeeded(
PlanCompilerPhase
.JoinElimination);