1. A method in a data processing system for providing hardware assistance to prefetch data during execution of code by a process or in the data processing system, the method comprising: responsive to loading of an instruction in the code into a cache, determining, by a processor unit, whether metadata for a prefetch is present for the instruction; and responsive to metadata being present for the instruction, selectively prefetching data, from within a data structure using the metadata, into the cache in a processor.