gfx/angle/src/compiler/depgraph/DependencyGraphOutput.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/compiler/depgraph/DependencyGraphOutput.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +//
     1.5 +// Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
     1.6 +// Use of this source code is governed by a BSD-style license that can be
     1.7 +// found in the LICENSE file.
     1.8 +//
     1.9 +
    1.10 +#ifndef COMPILER_DEPGRAPH_DEPENDENCY_GRAPH_OUTPUT_H
    1.11 +#define COMPILER_DEPGRAPH_DEPENDENCY_GRAPH_OUTPUT_H
    1.12 +
    1.13 +#include "compiler/depgraph/DependencyGraph.h"
    1.14 +#include "compiler/InfoSink.h"
    1.15 +
    1.16 +class TDependencyGraphOutput : public TDependencyGraphTraverser {
    1.17 +public:
    1.18 +    TDependencyGraphOutput(TInfoSinkBase& sink) : mSink(sink) {}
    1.19 +    virtual void visitSymbol(TGraphSymbol* symbol);
    1.20 +    virtual void visitArgument(TGraphArgument* parameter);
    1.21 +    virtual void visitFunctionCall(TGraphFunctionCall* functionCall);
    1.22 +    virtual void visitSelection(TGraphSelection* selection);
    1.23 +    virtual void visitLoop(TGraphLoop* loop);
    1.24 +    virtual void visitLogicalOp(TGraphLogicalOp* logicalOp);
    1.25 +
    1.26 +    void outputAllSpanningTrees(TDependencyGraph& graph);
    1.27 +private:
    1.28 +    void outputIndentation();
    1.29 +
    1.30 +    TInfoSinkBase& mSink;
    1.31 +};
    1.32 +
    1.33 +#endif  // COMPILER_DEPGRAPH_DEPENDENCY_GRAPH_OUTPUT_H

mercurial