Search in sources :

Example 1 with UnpackEndianHalfNode

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

the class UnsafeEATest method postEACanonicalizeGraph.

@Override
protected void postEACanonicalizeGraph() {
    // Simplify any UnpackEndianHalfNode so we end up with constants.
    Graph.Mark mark = graph.getMark();
    for (UnpackEndianHalfNode node : graph.getNodes().filter(UnpackEndianHalfNode.class)) {
        node.lower(getTarget().arch.getByteOrder());
    }
    new CanonicalizerPhase().applyIncremental(graph, context, mark);
}
Also used : Graph(org.graalvm.compiler.graph.Graph) UnpackEndianHalfNode(org.graalvm.compiler.nodes.calc.UnpackEndianHalfNode) CanonicalizerPhase(org.graalvm.compiler.phases.common.CanonicalizerPhase)

Aggregations

Graph (org.graalvm.compiler.graph.Graph)1 UnpackEndianHalfNode (org.graalvm.compiler.nodes.calc.UnpackEndianHalfNode)1 CanonicalizerPhase (org.graalvm.compiler.phases.common.CanonicalizerPhase)1