Search in sources :

Example 1 with AArch64ReinterpretOp

use of org.graalvm.compiler.lir.aarch64.AArch64ReinterpretOp in project graal by oracle.

the class AArch64ArithmeticLIRGenerator method emitReinterpret.

@Override
public Value emitReinterpret(LIRKind to, Value inputVal) {
    ValueKind<?> from = inputVal.getValueKind();
    if (to.equals(from)) {
        return inputVal;
    }
    Variable result = getLIRGen().newVariable(to);
    getLIRGen().append(new AArch64ReinterpretOp(result, getLIRGen().asAllocatable(inputVal)));
    return result;
}
Also used : AArch64ReinterpretOp(org.graalvm.compiler.lir.aarch64.AArch64ReinterpretOp) Variable(org.graalvm.compiler.lir.Variable)

Aggregations

Variable (org.graalvm.compiler.lir.Variable)1 AArch64ReinterpretOp (org.graalvm.compiler.lir.aarch64.AArch64ReinterpretOp)1