4 instantiations of OptimizerPatterns
System.Private.Xml (4)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (4)
82
optPatt = new
OptimizerPatterns
();
98
optPatt = new
OptimizerPatterns
();
113
optPatt = new
OptimizerPatterns
();
138
optPatt = new
OptimizerPatterns
();
177 references to OptimizerPatterns
System.Private.Xml (177)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (11)
63
private static volatile
OptimizerPatterns
? s_zeroOrOneDefault;
64
private static volatile
OptimizerPatterns
? s_maybeManyDefault;
65
private static volatile
OptimizerPatterns
? s_dodDefault;
70
public static
OptimizerPatterns
Read(QilNode nd)
73
OptimizerPatterns
? optPatt = ann?.Patterns;
131
public static
OptimizerPatterns
Write(QilNode nd)
134
OptimizerPatterns
? optPatt = ann.Patterns;
160
OptimizerPatterns
annSrc =
OptimizerPatterns
.Read(ndSrc);
164
OptimizerPatterns
annDst =
OptimizerPatterns
.Write(ndDst);
System\Xml\Xsl\IlGen\TailCallAnalyzer.cs (1)
46
OptimizerPatterns
.Write(nd).AddPattern(OptimizerPatternName.TailCall);
System\Xml\Xsl\IlGen\XmlILAnnotation.cs (2)
20
private
OptimizerPatterns
? _optPatt;
98
public
OptimizerPatterns
? Patterns
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (145)
143
OptimizerPatterns
.Write(newNode!).AddPattern(OptimizerPatternName.IsReferenced);
181
OptimizerPatterns
.Write(node).AddPattern(OptimizerPatternName.MaybeSideEffects);
204
if (
OptimizerPatterns
.Read(node[i]).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
275
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.SameDepth);
381
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.Step);
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.SameDepth);
421
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.IsPositional);
764
if ((((local1).XmlType)!.IsSingleton) && (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
914
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
921
if (((IsStepPattern(local2, QilNodeType.Content)) || (IsStepPattern(local2, QilNodeType.Union))) && ((
OptimizerPatterns
.Read((QilNode)(local1)).GetArgument(OptimizerPatternArgument.StepInput)) == (
OptimizerPatterns
.Read((QilNode)(local2)).GetArgument(OptimizerPatternArgument.StepInput))))
926
AddStepPattern((QilNode)(local0), (QilNode)(
OptimizerPatterns
.Read((QilNode)(local1)).GetArgument(OptimizerPatternArgument.StepInput)));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
1029
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
1130
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
1812
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2082
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2196
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2291
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2386
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2481
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4);
2637
if (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.IsPositional))
2668
if (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
2715
if ((((local1).NodeType == QilNodeType.Let) || ((((QilNode)(local1)[0]).XmlType!).IsSingleton)) && (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
2858
OptimizerPatterns
.Inherit((QilNode)(local2), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local2), (QilNode)(local0), OptimizerPatternName.SameDepth);
2870
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
2879
if (
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.SameDepth))
2881
if (((IsStepPattern(local2, QilNodeType.Content)) || (IsStepPattern(local2, QilNodeType.Union))) && ((local1) == (
OptimizerPatterns
.Read((QilNode)(local2)).GetArgument(OptimizerPatternArgument.StepInput))))
2886
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
2897
if ((((IsStepPattern(local2, QilNodeType.Attribute)) || (IsStepPattern(local2, QilNodeType.XPathNamespace))) || (
OptimizerPatterns
.Read((QilNode)(local2)).MatchesPattern(OptimizerPatternName.FilterAttributeKind))) && ((local1) == (
OptimizerPatterns
.Read((QilNode)(local2)).GetArgument(OptimizerPatternArgument.StepInput))))
2902
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.SameDepth);
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
2912
if (
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.SameDepth))
2914
if (((IsStepPattern(local2, QilNodeType.Descendant)) || (IsStepPattern(local2, QilNodeType.DescendantOrSelf))) && ((local1) == (
OptimizerPatterns
.Read((QilNode)(local2)).GetArgument(OptimizerPatternArgument.StepInput))))
2919
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
2956
if (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
3053
if ((!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)) && (!(((QilNode)(local1)[0]).NodeType == QilNodeType.OptimizeBarrier)))
3055
if ((!(DependsOn(local2, local1))) && (!
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
3082
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6);
3106
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6);
3130
OptimizerPatterns
.Write((QilNode)(local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode)(local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6 - 1);
3145
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.Step);
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local3), (QilNode)(local0), OptimizerPatternName.SameDepth);
3154
if (
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.Axis))
3185
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.FilterElements);
OptimizerPatterns
.Write((QilNode)(local0)).AddArgument(OptimizerPatternArgument.ElementQName, local11);
3204
if (
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.Axis))
3220
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.FilterContentKind);
OptimizerPatterns
.Write((QilNode)(local0)).AddArgument(OptimizerPatternArgument.KindTestType, local6);
3250
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.FilterAttributeKind);
3369
if (((
OptimizerPatterns
.Read((QilNode)(local7)).MatchesPattern(OptimizerPatternName.FilterElements)) || (
OptimizerPatterns
.Read((QilNode)(local7)).MatchesPattern(OptimizerPatternName.FilterContentKind))) && (IsStepPattern(local7, QilNodeType.Content)))
3400
if (((
OptimizerPatterns
.Read((QilNode)(local5)).MatchesPattern(OptimizerPatternName.FilterElements)) || (
OptimizerPatterns
.Read((QilNode)(local5)).MatchesPattern(OptimizerPatternName.FilterContentKind))) && (IsStepPattern(local5, QilNodeType.Content)))
3423
if (!
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional))
3425
if (((!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterElements))) && (!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterContentKind)))) && (!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterAttributeKind))))
3451
if (!
OptimizerPatterns
.Read(local4).MatchesPattern(OptimizerPatternName.IsPositional))
3455
if (((!(
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.FilterElements))) && (!(
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.FilterContentKind)))) && (!(
OptimizerPatterns
.Read((QilNode)(local3)).MatchesPattern(OptimizerPatternName.FilterAttributeKind))))
3481
if ((!
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional)) && ((local3).XmlType!.IsSubtypeOf(XmlQueryTypeFactory.NodeNotRtfS)))
3483
if (((!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterElements))) && (!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterContentKind)))) && (!(
OptimizerPatterns
.Read((QilNode)(local1)).MatchesPattern(OptimizerPatternName.FilterAttributeKind))))
3538
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local1), (QilNode)(local0), OptimizerPatternName.SameDepth);
3548
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.DodReverse);
OptimizerPatterns
.Write((QilNode)(local0)).AddArgument(OptimizerPatternArgument.DodStep, local1);
3563
if ((AllowJoinAndDod(local4)) && ((local2) == (
OptimizerPatterns
.Read((QilNode)(local4)).GetArgument(OptimizerPatternArgument.StepInput))))
3568
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.JoinAndDod);
OptimizerPatterns
.Write((QilNode)(local0)).AddArgument(OptimizerPatternArgument.DodStep, local4);
3587
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.DodMerge);
3655
OptimizerPatterns
patt =
OptimizerPatterns
.Write(local2);
3704
OptimizerPatterns
patt =
OptimizerPatterns
.Write(local2);
3758
OptimizerPatterns
.Inherit((QilNode)(local4), (QilNode)(local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode)(local4), (QilNode)(local0), OptimizerPatternName.SameDepth);
3787
AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
3824
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
3849
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
3874
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
3899
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
3924
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
3949
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
3974
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
3999
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
4024
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
4049
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
4086
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
4412
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SingleTextRtf);
OptimizerPatterns
.Write((QilNode)(local0)).AddArgument(OptimizerPatternArgument.RtfText, local3);
4575
if (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
4593
if (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
4626
if (!(!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
4644
if (!(!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
4693
if ((!((local1).XmlType)!.MaybeEmpty) && (!
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects)))
4755
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
4780
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
4805
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode)(local0), (QilNode)(local1));
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Write((QilNode)(local0)).AddPattern(OptimizerPatternName.SameDepth);
5319
OptimizerPatterns
patt =
OptimizerPatterns
.Read(nd);
5340
OptimizerPatterns
patt =
OptimizerPatterns
.Read(nd);
5590
OptimizerPatterns
patt =
OptimizerPatterns
.Write(nd);
5601
return
OptimizerPatterns
.Read(nd).MatchesPattern(OptimizerPatternName.IsDocOrderDistinct);
5609
return IsStepPattern(
OptimizerPatterns
.Read(nd), stepType);
5615
private static bool IsStepPattern(
OptimizerPatterns
patt, QilNodeType stepType)
5642
OptimizerPatterns
optPatt =
OptimizerPatterns
.Read(nd);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (17)
1072
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndSetLen);
1917
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndFilter);
2109
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndIter);
2138
private void StartForBinding(QilIterator ndFor,
OptimizerPatterns
patt)
2411
OptimizerPatterns
pattDod =
OptimizerPatterns
.Read(ndDod);
2421
OptimizerPatterns
pattStep =
OptimizerPatterns
.Read((QilNode)pattDod.GetArgument(OptimizerPatternArgument.DodStep));
2566
if (
OptimizerPatterns
.Read(ndInvoke).MatchesPattern(OptimizerPatternName.TailCall))
3040
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndRtf);
4925
OptimizerPatterns
patt;
4938
patt =
OptimizerPatterns
.Read(nd);
4946
patt =
OptimizerPatterns
.Read(nd);
System\Xml\Xsl\XmlIlGenerator.cs (1)
337
if (_qil!.IsDebug ||
OptimizerPatterns
.Read(ndIter).MatchesPattern(OptimizerPatternName.MaybeSideEffects))