1//
2// Copyright (c) 2018 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// FoldExpressions.h: Fold expressions. This may fold expressions so that the qualifier of the
7// folded node differs from the qualifier of the original expression, so it needs to be done after
8// parsing and validation of qualifiers is complete. Expressions that are folded: 1. Ternary ops
9// with a constant condition.
10
11#ifndef COMPILER_TRANSLATOR_TREEOPS_FOLDEXPRESSIONS_H_
12#define COMPILER_TRANSLATOR_TREEOPS_FOLDEXPRESSIONS_H_
13
14namespace sh
15{
16
17class TIntermBlock;
18class TDiagnostics;
19
20void FoldExpressions(TIntermBlock *root, TDiagnostics *diagnostics);
21
22} // namespace sh
23
24#endif // COMPILER_TRANSLATOR_TREEOPS_FOLDEXPRESSIONS_H_
25