| 1 | // |
| 2 | // Copyright (c) 2016 The ANGLE Project Authors. All rights reserved. |
| 3 | // Use of this source code is governed by a BSD-style license that can be |
| 4 | // found in the LICENSE file. |
| 5 | // |
| 6 | // SplitSequenceOperator is an AST traverser that detects sequence operator expressions that |
| 7 | // go through further AST transformations that generate statements, and splits them so that |
| 8 | // possible side effects of earlier parts of the sequence operator expression are guaranteed to be |
| 9 | // evaluated before the latter parts of the sequence operator expression are evaluated. |
| 10 | // |
| 11 | |
| 12 | #ifndef COMPILER_TRANSLATOR_TREEOPS_SPLITSEQUENCEOPERATOR_H_ |
| 13 | #define COMPILER_TRANSLATOR_TREEOPS_SPLITSEQUENCEOPERATOR_H_ |
| 14 | |
| 15 | namespace sh |
| 16 | { |
| 17 | |
| 18 | class TIntermNode; |
| 19 | class TSymbolTable; |
| 20 | |
| 21 | void SplitSequenceOperator(TIntermNode *root, int patternsToSplitMask, TSymbolTable *symbolTable); |
| 22 | |
| 23 | } // namespace sh |
| 24 | |
| 25 | #endif // COMPILER_TRANSLATOR_TREEOPS_SPLITSEQUENCEOPERATOR_H_ |
| 26 | |