Various embodiments that may be used in performing speculative code motion
for memory latency hiding are disclosed. One embodiment comprises
extracting an asynchronous signal from a memory access instruction in a
program to represent a latency of the memory access instruction, and
generating a wait instruction to wait the asynchronous signal.