use of com.oracle.truffle.llvm.nodes.asm.LLVMAMD64RepNode in project sulong by graalvm.
the class AsmFactory method createRep.
private void createRep(LLVMExpressionNode body) {
if ("rep".equals(currentPrefix)) {
LLVMExpressionNode rcx = getOperandLoad(PrimitiveType.I64, new AsmRegisterOperand("rcx"));
LLVMAMD64WriteValueNode writeRCX = getStore(PrimitiveType.I64, new AsmRegisterOperand("rcx"));
LLVMExpressionNode rep = new LLVMAMD64RepNode(writeRCX, rcx, body);
statements.add(rep);
} else {
statements.add(body);
}
}
Aggregations