Search in sources :

Example 1 with ReturnOp

use of org.graalvm.compiler.lir.amd64.AMD64ControlFlow.ReturnOp in project graal by oracle.

the class AMD64LIRGenerator method emitReturn.

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

Aggregations

ValueUtil.isAllocatableValue (jdk.vm.ci.code.ValueUtil.isAllocatableValue)1 AllocatableValue (jdk.vm.ci.meta.AllocatableValue)1 ReturnOp (org.graalvm.compiler.lir.amd64.AMD64ControlFlow.ReturnOp)1