blob: 0aae9e59dbd0adffe4c7344c4047f82505ae3f0e [file] [log] [blame]
//
// Copyright 2024 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.
//
// PruneInfiniteLoops.h: Attempts to remove infinite loops, used with WebGL contexts.
#ifndef COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_
#define COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_
#include "common/angleutils.h"
namespace sh
{
class TCompiler;
class TIntermBlock;
class TSymbolTable;
[[nodiscard]] bool PruneInfiniteLoops(TCompiler *compiler,
TIntermBlock *root,
TSymbolTable *symbolTable,
bool *anyLoopsPruned);
} // namespace sh
#endif // COMPILER_TRANSLATOR_TREEOPS_PRUNEINFINITELOOPS_H_