Search in sources :

Example 1 with GraphDecoder

use of org.graalvm.compiler.nodes.GraphDecoder in project graal by oracle.

the class GraalSupport method decodeGraph.

public static StructuredGraph decodeGraph(DebugContext debug, String name, CompilationIdentifier compilationId, SharedRuntimeMethod method) {
    // XXX
    EncodedGraph encodedGraph = encodedGraph(method, false);
    if (encodedGraph == null) {
        return null;
    }
    StructuredGraph graph = new StructuredGraph.Builder(debug.getOptions(), debug).name(name).method(method).compilationId(compilationId).build();
    GraphDecoder decoder = new GraphDecoder(ConfigurationValues.getTarget().arch, graph);
    decoder.decode(encodedGraph);
    return graph;
}
Also used : StructuredGraph(org.graalvm.compiler.nodes.StructuredGraph) GraphDecoder(org.graalvm.compiler.nodes.GraphDecoder) EncodedGraph(org.graalvm.compiler.nodes.EncodedGraph)

Aggregations

EncodedGraph (org.graalvm.compiler.nodes.EncodedGraph)1 GraphDecoder (org.graalvm.compiler.nodes.GraphDecoder)1 StructuredGraph (org.graalvm.compiler.nodes.StructuredGraph)1