blob: 24a425e66d5231f356f3bbdd641209ee0f02b999 [file] [log] [blame]
Jamie Madille53c98b2014-02-03 11:57:13 -05001//
2// Copyright (c) 2014 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// RewriteElseBlocks.h: Prototype for tree transform to change
7// all if-else blocks to if-if blocks.
8//
9
Geoff Lang0a73dd82014-11-19 16:18:08 -050010#ifndef COMPILER_TRANSLATOR_REWRITEELSEBLOCKS_H_
11#define COMPILER_TRANSLATOR_REWRITEELSEBLOCKS_H_
Jamie Madille53c98b2014-02-03 11:57:13 -050012
Jamie Madillb1a85f42014-08-19 15:23:24 -040013#include "compiler/translator/IntermNode.h"
Jamie Madille53c98b2014-02-03 11:57:13 -050014
15namespace sh
16{
17
Olli Etuaho4d59f3c2015-05-28 17:33:53 +030018void RewriteElseBlocks(TIntermNode *node, unsigned int *temporaryIndex);
Jamie Madille53c98b2014-02-03 11:57:13 -050019
20}
21
Geoff Lang0a73dd82014-11-19 16:18:08 -050022#endif // COMPILER_TRANSLATOR_REWRITEELSEBLOCKS_H_