use of org.graalvm.compiler.lir.sparc.SPARCMove.LoadAddressOp in project graal by oracle.
the class SPARCMoveFactory method createMove.
@Override
public LIRInstruction createMove(AllocatableValue dst, Value src) {
boolean srcIsSlot = isStackSlotValue(src);
boolean dstIsSlot = isStackSlotValue(dst);
if (isConstantValue(src)) {
return createLoad(dst, asConstant(src));
} else if (src instanceof SPARCAddressValue) {
return new LoadAddressOp(dst, (SPARCAddressValue) src);
} else {
assert src instanceof AllocatableValue;
if (srcIsSlot && dstIsSlot) {
throw GraalError.shouldNotReachHere(src.getClass() + " " + dst.getClass());
} else {
return new Move(dst, (AllocatableValue) src);
}
}
}
Aggregations