Search in sources :

Example 1 with LoopExplosionPhiNode

use of org.graalvm.compiler.truffle.test.nodes.LoopExplosionPhiNode in project graal by oracle.

the class SimplePartialEvaluationTest method loopExplosionPhi.

@Test
public void loopExplosionPhi() {
    FrameDescriptor fd = new FrameDescriptor();
    AbstractTestNode result = new LoopExplosionPhiNode();
    RootNode rootNode = new RootTestNode(fd, "loopExplosionPhi", result);
    OptimizedCallTarget compilable = compileHelper("loopExplosionPhi", rootNode, new Object[0]);
    Assert.assertEquals(1, compilable.call(new Object[0]));
}
Also used : FrameDescriptor(com.oracle.truffle.api.frame.FrameDescriptor) RootNode(com.oracle.truffle.api.nodes.RootNode) AbstractTestNode(org.graalvm.compiler.truffle.test.nodes.AbstractTestNode) OptimizedCallTarget(org.graalvm.compiler.truffle.runtime.OptimizedCallTarget) LoopExplosionPhiNode(org.graalvm.compiler.truffle.test.nodes.LoopExplosionPhiNode) RootTestNode(org.graalvm.compiler.truffle.test.nodes.RootTestNode) Test(org.junit.Test)

Aggregations

FrameDescriptor (com.oracle.truffle.api.frame.FrameDescriptor)1 RootNode (com.oracle.truffle.api.nodes.RootNode)1 OptimizedCallTarget (org.graalvm.compiler.truffle.runtime.OptimizedCallTarget)1 AbstractTestNode (org.graalvm.compiler.truffle.test.nodes.AbstractTestNode)1 LoopExplosionPhiNode (org.graalvm.compiler.truffle.test.nodes.LoopExplosionPhiNode)1 RootTestNode (org.graalvm.compiler.truffle.test.nodes.RootTestNode)1 Test (org.junit.Test)1