Search in sources :

Example 1 with ReturnOp

use of org.graalvm.compiler.lir.sparc.SPARCControlFlow.ReturnOp in project graal by oracle.

the class SPARCLIRGenerator method emitReturn.

@Override
public void emitReturn(JavaKind javaKind, Value input) {
    AllocatableValue operand = Value.ILLEGAL;
    if (input != null) {
        operand = resultOperandFor(javaKind, input.getValueKind());
        emitMove(operand, input);
    }
    append(new ReturnOp(operand));
}
Also used : AllocatableValue(jdk.vm.ci.meta.AllocatableValue) ReturnOp(org.graalvm.compiler.lir.sparc.SPARCControlFlow.ReturnOp)

Aggregations

AllocatableValue (jdk.vm.ci.meta.AllocatableValue)1 ReturnOp (org.graalvm.compiler.lir.sparc.SPARCControlFlow.ReturnOp)1