Hash :
798c5200
Author :
Date :
2021-07-31T22:17:48
Translator: Make precise-ness a property of AST nodes Instead of creating a "set of precise nodes", the nodes themselves are marked precise. This change is preparation for another change that overhauls precision propagation through the nodes, and which would also be storing the promoted precision in the nodes. Bug: angleproject:4889 Change-Id: Ieec8864be5cd2e95ed6fb4d90b367946d9f33fa1 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3065569 Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Tim Van Patten <timvp@google.com> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
//
// Copyright 2021 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// FindPreciseNodes.h: Propagates |precise| to AST nodes. In SPIR-V, the corresponding decoration
// (NoContraction) is applied on the intermediate result of operations that affect the |precise|
// variables, not the variables themselves.
#ifndef COMPILER_TRANSLATOR_TREEUTIL_FINDPRECISENODES_H_
#define COMPILER_TRANSLATOR_TREEUTIL_FINDPRECISENODES_H_
#include "common/angleutils.h"
namespace sh
{
class TCompiler;
class TIntermBlock;
void FindPreciseNodes(TCompiler *compiler, TIntermBlock *root);
} // namespace sh
#endif // COMPILER_TRANSLATOR_TREEUTIL_FINDPRECISENODES_H_