tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

RemoveAtomicCounterBuiltins.h (835B)


      1 //
      2 // Copyright 2020 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 // RemoveAtomicCounterBuiltins: Remove atomic counter builtins.
      7 // Normally handled by RewriteAtomicCounters, but that is only invoked when
      8 // atomic counters are actually in use. This pass removes the builtins and
      9 // asserts no atomic counters are declared.
     10 
     11 #ifndef COMPILER_TRANSLATOR_TREEOPS_REMOVEATOMICCOUNTERBUILTINS_H_
     12 #define COMPILER_TRANSLATOR_TREEOPS_REMOVEATOMICCOUNTERBUILTINS_H_
     13 
     14 #include "common/angleutils.h"
     15 
     16 namespace sh
     17 {
     18 class TCompiler;
     19 class TIntermBlock;
     20 
     21 [[nodiscard]] bool RemoveAtomicCounterBuiltins(TCompiler *compiler, TIntermBlock *root);
     22 }  // namespace sh
     23 
     24 #endif  // COMPILER_TRANSLATOR_TREEOPS_REMOVEATOMICCOUNTERBUILTINS_H_