Edit

kc3-lang/angle/src/compiler/translator/RecordConstantPrecision.h

Branch :

  • Show log

    Commit

  • Author : Olli Etuaho
    Date : 2017-07-13 16:07:26
    Hash : a5e693af
    Message : Make unique id counter a member of TSymbolTable This makes unique id counting thread-safe. BUG=angleproject:624 TEST=angle_unittests Change-Id: Ie0f2c7e574470b39750d37d2181c790bc874b275 Reviewed-on: https://chromium-review.googlesource.com/570419 Commit-Queue: Olli Etuaho <oetuaho@nvidia.com> Reviewed-by: Jamie Madill <jmadill@chromium.org>

  • src/compiler/translator/RecordConstantPrecision.h
  • //
    // Copyright (c) 2002-2015 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.
    //
    // During parsing, all constant expressions are folded to constant union nodes. The expressions that
    // have been folded may have had precision qualifiers, which should affect the precision of the
    // consuming operation. If the folded constant union nodes are written to output as such they won't
    // have any precision qualifiers, and their effect on the precision of the consuming operation is
    // lost.
    //
    // RecordConstantPrecision is an AST traverser that inspects the precision qualifiers of constants
    // and hoists the constants outside the containing expression as precision qualified named variables
    // in case that is required for correct precision propagation.
    //
    
    #ifndef COMPILER_TRANSLATOR_RECORDCONSTANTPRECISION_H_
    #define COMPILER_TRANSLATOR_RECORDCONSTANTPRECISION_H_
    
    namespace sh
    {
    class TIntermNode;
    class TSymbolTable;
    
    void RecordConstantPrecision(TIntermNode *root, TSymbolTable *symbolTable);
    }  // namespace sh
    
    #endif  // COMPILER_TRANSLATOR_RECORDCONSTANTPRECISION_H_