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
16namespace sh
17{
18class TCompiler;
19class TIntermBlock;
20
21[[nodiscard]] bool RemoveAtomicCounterBuiltins(TCompiler *compiler, TIntermBlock *root);
22} // namespace sh
23
24#endif // COMPILER_TRANSLATOR_TREEOPS_REMOVEATOMICCOUNTERBUILTINS_H_
25

source code of flutter_engine/third_party/angle/src/compiler/translator/tree_ops/RemoveAtomicCounterBuiltins.h