Home
last modified time | relevance | path

Searched refs:traverser (Results 1 – 25 of 90) sorted by relevance

1234

/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceVariable.cpp112 ReplaceVariableTraverser traverser(toBeReplaced, new TIntermSymbol(replacement)); in ReplaceVariable() local
113 root->traverse(&traverser); in ReplaceVariable()
114 return traverser.updateTree(compiler, root); in ReplaceVariable()
121 ReplaceVariablesTraverser traverser(variableMap); in ReplaceVariables() local
122 root->traverse(&traverser); in ReplaceVariables()
123 return traverser.updateTree(compiler, root); in ReplaceVariables()
130 GetDeclaratorReplacementsTraverser traverser(symbolTable, variableMap); in GetDeclaratorReplacements() local
131 root->traverse(&traverser); in GetDeclaratorReplacements()
140 ReplaceVariableTraverser traverser(toBeReplaced, replacement); in ReplaceVariableWithTyped() local
141 root->traverse(&traverser); in ReplaceVariableWithTyped()
[all …]
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp73 RemoveArrayLengthTraverser traverser; in RemoveArrayLengthMethod() local
76 traverser.nextIteration(); in RemoveArrayLengthMethod()
77 root->traverse(&traverser); in RemoveArrayLengthMethod()
78 if (traverser.foundArrayLength()) in RemoveArrayLengthMethod()
79 traverser.updateTree(); in RemoveArrayLengthMethod()
80 } while (traverser.foundArrayLength()); in RemoveArrayLengthMethod()
DRewriteUnaryMinusOperatorFloat.cpp34 Traverser traverser; in Apply() local
37 traverser.nextIteration(); in Apply()
38 root->traverse(&traverser); in Apply()
39 if (traverser.mFound) in Apply()
41 traverser.updateTree(); in Apply()
43 } while (traverser.mFound); in Apply()
DRewriteUnaryMinusOperatorInt.cpp35 Traverser traverser; in Apply() local
38 traverser.nextIteration(); in Apply()
39 root->traverse(&traverser); in Apply()
40 if (traverser.mFound) in Apply()
42 traverser.updateTree(); in Apply()
44 } while (traverser.mFound); in Apply()
DRecordConstantPrecision.cpp156 RecordConstantPrecisionTraverser traverser(symbolTable); in RecordConstantPrecision() local
160 traverser.nextIteration(); in RecordConstantPrecision()
161 root->traverse(&traverser); in RecordConstantPrecision()
162 if (traverser.foundHigherPrecisionConstant()) in RecordConstantPrecision()
163 traverser.updateTree(); in RecordConstantPrecision()
164 } while (traverser.foundHigherPrecisionConstant()); in RecordConstantPrecision()
DSeparateExpressionsReturningArrays.cpp118 SeparateExpressionsTraverser traverser(symbolTable); in SeparateExpressionsReturningArrays() local
122 traverser.nextIteration(); in SeparateExpressionsReturningArrays()
123 root->traverse(&traverser); in SeparateExpressionsReturningArrays()
124 if (traverser.foundArrayExpression()) in SeparateExpressionsReturningArrays()
125 traverser.updateTree(); in SeparateExpressionsReturningArrays()
126 } while (traverser.foundArrayExpression()); in SeparateExpressionsReturningArrays()
DEmulateMultiDrawShaderBuiltins.cpp107 FindGLDrawIDTraverser traverser; in EmulateGLDrawID() local
108 root->traverse(&traverser); in EmulateGLDrawID()
109 const TVariable *builtInVariable = traverser.getGLDrawIDBuiltinVariable(); in EmulateGLDrawID()
144 FindGLBaseVertexTraverser traverser; in EmulateGLBaseVertex() local
145 root->traverse(&traverser); in EmulateGLBaseVertex()
146 const TVariable *builtInVariable = traverser.getGLBaseVertexBuiltinVariable(); in EmulateGLBaseVertex()
181 FindGLBaseInstanceTraverser traverser; in EmulateGLBaseInstance() local
182 root->traverse(&traverser); in EmulateGLBaseInstance()
183 const TVariable *builtInVariable = traverser.getGLBaseInstanceBuiltinVariable(); in EmulateGLBaseInstance()
DSplitSequenceOperator.cpp152 SplitSequenceOperatorTraverser traverser(patternsToSplitMask, symbolTable); in SplitSequenceOperator() local
156 traverser.nextIteration(); in SplitSequenceOperator()
157 root->traverse(&traverser); in SplitSequenceOperator()
158 if (traverser.foundExpressionToSplit()) in SplitSequenceOperator()
159 traverser.updateTree(); in SplitSequenceOperator()
160 } while (traverser.foundExpressionToSplit()); in SplitSequenceOperator()
DExpandIntegerPowExpressions.cpp39 Traverser traverser(symbolTable); in Apply() local
42 traverser.nextIteration(); in Apply()
43 root->traverse(&traverser); in Apply()
44 if (traverser.mFound) in Apply()
46 traverser.updateTree(); in Apply()
48 } while (traverser.mFound); in Apply()
DRewriteTexelFetchOffset.cpp44 Traverser traverser(symbolTable, shaderVersion); in Apply() local
47 traverser.nextIteration(); in Apply()
48 root->traverse(&traverser); in Apply()
49 if (traverser.mFound) in Apply()
51 traverser.updateTree(); in Apply()
53 } while (traverser.mFound); in Apply()
DFoldExpressions.cpp106 FoldExpressionsTraverser traverser(diagnostics); in FoldExpressions() local
109 traverser.nextIteration(); in FoldExpressions()
110 root->traverse(&traverser); in FoldExpressions()
111 traverser.updateTree(); in FoldExpressions()
112 } while (traverser.didReplace()); in FoldExpressions()
DRemovePow.cpp91 RemovePowTraverser traverser(symbolTable); in RemovePow() local
95 traverser.nextIteration(); in RemovePow()
96 root->traverse(&traverser); in RemovePow()
97 traverser.updateTree(); in RemovePow()
98 } while (traverser.needAnotherIteration()); in RemovePow()
DEmulateGLFragColorBroadcast.cpp111 GLFragColorBroadcastTraverser traverser(maxDrawBuffers, symbolTable, shaderVersion); in EmulateGLFragColorBroadcast() local
112 root->traverse(&traverser); in EmulateGLFragColorBroadcast()
113 if (traverser.isGLFragColorUsed()) in EmulateGLFragColorBroadcast()
115 traverser.updateTree(); in EmulateGLFragColorBroadcast()
116 traverser.broadcastGLFragColor(root); in EmulateGLFragColorBroadcast()
DUnfoldShortCircuitToIf.cpp182 UnfoldShortCircuitTraverser traverser(symbolTable); in UnfoldShortCircuitToIf() local
186 traverser.nextIteration(); in UnfoldShortCircuitToIf()
187 root->traverse(&traverser); in UnfoldShortCircuitToIf()
188 if (traverser.foundShortCircuit()) in UnfoldShortCircuitToIf()
189 traverser.updateTree(); in UnfoldShortCircuitToIf()
190 } while (traverser.foundShortCircuit()); in UnfoldShortCircuitToIf()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/apple/
DRewriteUnaryMinusOperatorFloat.cpp34 Traverser traverser; in Apply() local
37 traverser.nextIteration(); in Apply()
38 root->traverse(&traverser); in Apply()
39 if (traverser.mFound) in Apply()
41 if (!traverser.updateTree(compiler, root)) in Apply()
46 } while (traverser.mFound); in Apply()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/
DRemoveArrayLengthMethod.cpp92 RemoveArrayLengthTraverser traverser; in RemoveArrayLengthMethod() local
95 traverser.nextIteration(); in RemoveArrayLengthMethod()
96 root->traverse(&traverser); in RemoveArrayLengthMethod()
97 if (traverser.foundArrayLength()) in RemoveArrayLengthMethod()
99 if (!traverser.updateTree(compiler, root)) in RemoveArrayLengthMethod()
104 } while (traverser.foundArrayLength()); in RemoveArrayLengthMethod()
DSplitSequenceOperator.cpp155 SplitSequenceOperatorTraverser traverser(patternsToSplitMask, symbolTable); in SplitSequenceOperator() local
159 traverser.nextIteration(); in SplitSequenceOperator()
160 root->traverse(&traverser); in SplitSequenceOperator()
161 if (traverser.foundExpressionToSplit()) in SplitSequenceOperator()
163 if (!traverser.updateTree(compiler, root)) in SplitSequenceOperator()
168 } while (traverser.foundExpressionToSplit()); in SplitSequenceOperator()
DRewriteTexelFetchOffset.cpp50 Traverser traverser(symbolTable, shaderVersion); in Apply() local
53 traverser.nextIteration(); in Apply()
54 root->traverse(&traverser); in Apply()
55 if (traverser.mFound) in Apply()
57 if (!traverser.updateTree(compiler, root)) in Apply()
62 } while (traverser.mFound); in Apply()
DFoldExpressions.cpp106 FoldExpressionsTraverser traverser(diagnostics); in FoldExpressions() local
109 traverser.nextIteration(); in FoldExpressions()
110 root->traverse(&traverser); in FoldExpressions()
111 if (!traverser.updateTree(compiler, root)) in FoldExpressions()
115 } while (traverser.didReplace()); in FoldExpressions()
DEmulateGLFragColorBroadcast.cpp113 GLFragColorBroadcastTraverser traverser(maxDrawBuffers, symbolTable, shaderVersion); in EmulateGLFragColorBroadcast() local
114 root->traverse(&traverser); in EmulateGLFragColorBroadcast()
115 if (traverser.isGLFragColorUsed()) in EmulateGLFragColorBroadcast()
117 if (!traverser.updateTree(compiler, root)) in EmulateGLFragColorBroadcast()
121 if (!traverser.broadcastGLFragColor(compiler, root)) in EmulateGLFragColorBroadcast()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/d3d/
DRewriteUnaryMinusOperatorInt.cpp35 Traverser traverser; in Apply() local
38 traverser.nextIteration(); in Apply()
39 root->traverse(&traverser); in Apply()
40 if (traverser.mFound) in Apply()
42 if (!traverser.updateTree(compiler, root)) in Apply()
47 } while (traverser.mFound); in Apply()
DSeparateExpressionsReturningArrays.cpp120 SeparateExpressionsTraverser traverser(symbolTable); in SeparateExpressionsReturningArrays() local
124 traverser.nextIteration(); in SeparateExpressionsReturningArrays()
125 root->traverse(&traverser); in SeparateExpressionsReturningArrays()
126 if (traverser.foundArrayExpression()) in SeparateExpressionsReturningArrays()
128 if (!traverser.updateTree(compiler, root)) in SeparateExpressionsReturningArrays()
133 } while (traverser.foundArrayExpression()); in SeparateExpressionsReturningArrays()
DExpandIntegerPowExpressions.cpp41 Traverser traverser(symbolTable); in Apply() local
44 traverser.nextIteration(); in Apply()
45 root->traverse(&traverser); in Apply()
46 if (traverser.mFound) in Apply()
48 if (!traverser.updateTree(compiler, root)) in Apply()
53 } while (traverser.mFound); in Apply()
/third_party/flutter/skia/third_party/externals/angle2/src/compiler/translator/tree_util/
DReplaceVariable.cpp50 ReplaceVariableTraverser traverser(toBeReplaced, new TIntermSymbol(replacement)); in ReplaceVariable() local
51 root->traverse(&traverser); in ReplaceVariable()
52 traverser.updateTree(); in ReplaceVariable()
60 ReplaceVariableTraverser traverser(toBeReplaced, replacement); in ReplaceVariableWithTyped() local
61 root->traverse(&traverser); in ReplaceVariableWithTyped()
62 traverser.updateTree(); in ReplaceVariableWithTyped()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/tree_ops/vulkan/
DEarlyFragmentTestsOptimization.cpp69 CheckEFTOptimizationTraverser traverser; in CheckEarlyFragmentTestsFeasible() local
70 root->traverse(&traverser); in CheckEarlyFragmentTestsFeasible()
72 if (traverser.isFragDepthUsed() || traverser.isDiscardOpUsed()) in CheckEarlyFragmentTestsFeasible()

1234