chromium/third_party/angle/src/compiler/translator/tree_ops/PruneNoOps.cpp

//
// Copyright 2002 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.
//
// PruneNoOps.cpp: The PruneNoOps function prunes no-op statements.

#include "compiler/translator/tree_ops/PruneNoOps.h"

#include "compiler/translator/Symbol.h"
#include "compiler/translator/tree_util/IntermTraverse.h"

namespace sh
{

namespace
{
uint32_t GetSwitchConstantAsUInt(const TConstantUnion *value)
{}

bool IsNoOpSwitch(TIntermSwitch *node)
{}

bool IsNoOp(TIntermNode *node)
{}

class PruneNoOpsTraverser : private TIntermTraverser
{};

bool PruneNoOpsTraverser::apply(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable)
{}

PruneNoOpsTraverser::PruneNoOpsTraverser(TSymbolTable *symbolTable)
    :{}

bool PruneNoOpsTraverser::visitDeclaration(Visit visit, TIntermDeclaration *node)
{}

bool PruneNoOpsTraverser::visitBlock(Visit visit, TIntermBlock *node)
{}

bool PruneNoOpsTraverser::visitLoop(Visit visit, TIntermLoop *loop)
{}

bool PruneNoOpsTraverser::visitBranch(Visit visit, TIntermBranch *node)
{}
}  // namespace

bool PruneNoOps(TCompiler *compiler, TIntermBlock *root, TSymbolTable *symbolTable)
{}

}  // namespace sh