4 instantiations of OptimizerPatterns
System.Data.SqlXml (4)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (4)
78
optPatt = new
OptimizerPatterns
();
91
optPatt = new
OptimizerPatterns
();
103
optPatt = new
OptimizerPatterns
();
125
optPatt = new
OptimizerPatterns
();
177 references to OptimizerPatterns
System.Data.SqlXml (177)
System\Xml\Xsl\IlGen\OptimizerPatterns.cs (11)
63
private static volatile
OptimizerPatterns
ZeroOrOneDefault;
64
private static volatile
OptimizerPatterns
MaybeManyDefault;
65
private static volatile
OptimizerPatterns
DodDefault;
70
public static
OptimizerPatterns
Read(QilNode nd) {
72
OptimizerPatterns
optPatt = (ann != null) ? ann.Patterns : null;
120
public static
OptimizerPatterns
Write(QilNode nd) {
122
OptimizerPatterns
optPatt = ann.Patterns;
144
OptimizerPatterns
annSrc =
OptimizerPatterns
.Read(ndSrc);
147
OptimizerPatterns
annDst =
OptimizerPatterns
.Write(ndDst);
System\Xml\Xsl\IlGen\TailCallAnalyzer.cs (1)
45
OptimizerPatterns
.Write(nd).AddPattern(OptimizerPatternName.TailCall);
System\Xml\Xsl\IlGen\XmlILAnnotation.cs (2)
22
private
OptimizerPatterns
optPatt;
93
public
OptimizerPatterns
Patterns {
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (145)
133
OptimizerPatterns
.Write(newNode).AddPattern(OptimizerPatternName.IsReferenced);
165
OptimizerPatterns
.Write(node).AddPattern(OptimizerPatternName.MaybeSideEffects);
186
if (
OptimizerPatterns
.Read(node[i]).MatchesPattern(OptimizerPatternName.MaybeSideEffects))
247
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.SameDepth); }
329
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.Step);
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.SameDepth); }
358
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.IsPositional); }
617
if (( ( (local1).XmlType ).IsSingleton ) && ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
729
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
733
if ((( IsStepPattern(local2, QilNodeType.Content) ) || ( IsStepPattern(local2, QilNodeType.Union) )) && ( (
OptimizerPatterns
.Read((QilNode) (local1)).GetArgument(OptimizerPatternArgument.StepInput) ) == (
OptimizerPatterns
.Read((QilNode) (local2)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
736
AddStepPattern((QilNode) (local0), (QilNode) (
OptimizerPatterns
.Read((QilNode) (local1)).GetArgument(OptimizerPatternArgument.StepInput) ));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.SameDepth); }
811
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
884
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
1394
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
1593
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
1676
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
1745
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
1814
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
1883
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local4); }
2001
if ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.IsPositional) ) {
2024
if ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) {
2058
if ((( (local1).NodeType == QilNodeType.Let ) || ( ( ( (QilNode) (local1)[0] ).XmlType ).IsSingleton )) && ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
2163
OptimizerPatterns
.Inherit((QilNode) (local2), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local2), (QilNode) (local0), OptimizerPatternName.SameDepth); }
2171
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.SameDepth); }
2177
if (
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.SameDepth) ) {
2178
if ((( IsStepPattern(local2, QilNodeType.Content) ) || ( IsStepPattern(local2, QilNodeType.Union) )) && ( (local1) == (
OptimizerPatterns
.Read((QilNode) (local2)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
2181
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.SameDepth);
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct); }
2189
if (((( IsStepPattern(local2, QilNodeType.Attribute) ) || ( IsStepPattern(local2, QilNodeType.XPathNamespace) )) || (
OptimizerPatterns
.Read((QilNode) (local2)).MatchesPattern(OptimizerPatternName.FilterAttributeKind) )) && ( (local1) == (
OptimizerPatterns
.Read((QilNode) (local2)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
2192
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.SameDepth);
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct); }
2199
if (
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.SameDepth) ) {
2200
if ((( IsStepPattern(local2, QilNodeType.Descendant) ) || ( IsStepPattern(local2, QilNodeType.DescendantOrSelf) )) && ( (local1) == (
OptimizerPatterns
.Read((QilNode) (local2)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
2203
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct); }
2231
if ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) {
2303
if (( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) && (!( ( (QilNode) (local1)[0] ).NodeType == QilNodeType.OptimizeBarrier ))) {
2304
if ((!(DependsOn(local2,local1))) && ( !
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
2323
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6); }
2340
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6); }
2357
OptimizerPatterns
.Write((QilNode) (local1)).AddPattern(OptimizerPatternName.MaxPosition);
OptimizerPatterns
.Write((QilNode) (local1)).AddArgument(OptimizerPatternArgument.MaxPosition, local6 - 1 ); }
2368
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.Step);
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local3), (QilNode) (local0), OptimizerPatternName.SameDepth); }
2374
if (
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.Axis) ) {
2394
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.FilterElements);
OptimizerPatterns
.Write((QilNode) (local0)).AddArgument(OptimizerPatternArgument.ElementQName, local11); }
2410
if (
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.Axis) ) {
2420
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.FilterContentKind);
OptimizerPatterns
.Write((QilNode) (local0)).AddArgument(OptimizerPatternArgument.KindTestType, local6); }
2441
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.FilterAttributeKind); }
2533
if (((
OptimizerPatterns
.Read((QilNode) (local7)).MatchesPattern(OptimizerPatternName.FilterElements) ) || (
OptimizerPatterns
.Read((QilNode) (local7)).MatchesPattern(OptimizerPatternName.FilterContentKind) )) && ( IsStepPattern(local7, QilNodeType.Content) )) {
2557
if (((
OptimizerPatterns
.Read((QilNode) (local5)).MatchesPattern(OptimizerPatternName.FilterElements) ) || (
OptimizerPatterns
.Read((QilNode) (local5)).MatchesPattern(OptimizerPatternName.FilterContentKind) )) && ( IsStepPattern(local5, QilNodeType.Content) )) {
2575
if ( !
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional) ) {
2576
if (((!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterElements) )) && (!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterContentKind) ))) && (!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterAttributeKind) ))) {
2596
if ( !
OptimizerPatterns
.Read(local4).MatchesPattern(OptimizerPatternName.IsPositional) ) {
2598
if (((!(
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.FilterElements) )) && (!(
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.FilterContentKind) ))) && (!(
OptimizerPatterns
.Read((QilNode) (local3)).MatchesPattern(OptimizerPatternName.FilterAttributeKind) ))) {
2618
if (( !
OptimizerPatterns
.Read(local2).MatchesPattern(OptimizerPatternName.IsPositional) ) && ( (local3).XmlType .IsSubtypeOf( XmlQueryTypeFactory.NodeNotRtfS ) )) {
2619
if (((!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterElements) )) && (!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterContentKind) ))) && (!(
OptimizerPatterns
.Read((QilNode) (local1)).MatchesPattern(OptimizerPatternName.FilterAttributeKind) ))) {
2661
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local1), (QilNode) (local0), OptimizerPatternName.SameDepth); }
2667
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.DodReverse);
OptimizerPatterns
.Write((QilNode) (local0)).AddArgument(OptimizerPatternArgument.DodStep, local1); }
2677
if (( AllowJoinAndDod(local4) ) && ( (local2) == (
OptimizerPatterns
.Read((QilNode) (local4)).GetArgument(OptimizerPatternArgument.StepInput) ) )) {
2680
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.JoinAndDod);
OptimizerPatterns
.Write((QilNode) (local0)).AddArgument(OptimizerPatternArgument.DodStep, local4); }
2693
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.DodMerge); }
2746
OptimizerPatterns
patt =
OptimizerPatterns
.Write(local2);
2785
OptimizerPatterns
patt =
OptimizerPatterns
.Write(local2);
2828
OptimizerPatterns
.Inherit((QilNode) (local4), (QilNode) (local0), OptimizerPatternName.IsDocOrderDistinct);
OptimizerPatterns
.Inherit((QilNode) (local4), (QilNode) (local0), OptimizerPatternName.SameDepth); }
2850
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); }
2877
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); }
2895
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); }
2913
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); }
2931
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
2949
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
2967
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1)); }
2985
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1)); }
3003
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1)); }
3021
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); }
3039
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.SameDepth); }
3066
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
3314
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.SingleTextRtf);
OptimizerPatterns
.Write((QilNode) (local0)).AddArgument(OptimizerPatternArgument.RtfText, local3);
3440
if ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) {
3453
if ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) ) {
3477
if (!( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
3490
if (!( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
3526
if (( !( (local1).XmlType ).MaybeEmpty ) && ( !
OptimizerPatterns
.Read(local1).MatchesPattern(OptimizerPatternName.MaybeSideEffects) )) {
3573
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1));
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.IsDocOrderDistinct); }
3591
OptimizerPatterns
.Write((QilNode) (local0)).AddPattern(OptimizerPatternName.Axis); AddStepPattern((QilNode) (local0), (QilNode) (local1)); }
3609
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); }
4052
OptimizerPatterns
patt =
OptimizerPatterns
.Read(nd);
4070
OptimizerPatterns
patt =
OptimizerPatterns
.Read(nd);
4291
OptimizerPatterns
patt =
OptimizerPatterns
.Write(nd);
4301
return
OptimizerPatterns
.Read(nd).MatchesPattern(OptimizerPatternName.IsDocOrderDistinct);
4308
return IsStepPattern(
OptimizerPatterns
.Read(nd), stepType);
4314
private bool IsStepPattern(
OptimizerPatterns
patt, QilNodeType stepType) {
4336
OptimizerPatterns
optPatt =
OptimizerPatterns
.Read(nd);
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (17)
998
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndSetLen);
1772
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndFilter);
1953
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndIter);
1980
private void StartForBinding(QilIterator ndFor,
OptimizerPatterns
patt) {
2236
OptimizerPatterns
pattDod =
OptimizerPatterns
.Read(ndDod);
2245
OptimizerPatterns
pattStep =
OptimizerPatterns
.Read((QilNode) pattDod.GetArgument(OptimizerPatternArgument.DodStep));
2380
if (
OptimizerPatterns
.Read(ndInvoke).MatchesPattern(OptimizerPatternName.TailCall))
2826
OptimizerPatterns
patt =
OptimizerPatterns
.Read(ndRtf);
4548
OptimizerPatterns
patt;
4560
patt =
OptimizerPatterns
.Read(nd);
4568
patt =
OptimizerPatterns
.Read(nd);
System\Xml\Xsl\XmlIlGenerator.cs (1)
318
if (this.qil.IsDebug ||
OptimizerPatterns
.Read(ndIter).MatchesPattern(OptimizerPatternName.MaybeSideEffects)) {