blob: b1d906f91984868c4d36094c6a226dcfd701e745 [file] [log] [blame]
Corentin Wallez509e4562016-08-25 14:55:44 -04001//
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
7// BreakVariableAliasingInInnerLoops.h: To optimize simple assignments, the HLSL compiler frontend
8// may record a variable as aliasing another. Sometimes the alias information gets garbled
9// so we work around this issue by breaking the aliasing chain in inner loops.
10
11#ifndef COMPILER_TRANSLATOR_BREAKVARIABLEALIASINGININNERLOOPS_H_
12#define COMPILER_TRANSLATOR_BREAKVARIABLEALIASINGININNERLOOPS_H_
13
14class TIntermNode;
15
16namespace sh
17{
18
19void BreakVariableAliasingInInnerLoops(TIntermNode *root);
20
21} // namespace sh
22
23#endif // COMPILER_TRANSLATOR_BREAKVARIABLEALIASINGININNERLOOPS_H_