[llvm-dev] data prefetch for machine instruction
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Mon Mar 21 11:14:51 PDT 2016
On 21 March 2016 at 10:55, Mohammad Norouzi via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> The ‘llvm.prefetch‘ intrinsic is a hint to the code generator to insert a
> prefetch instruction, if supported. How can I call or insert this hint into
> a MachineFunctionPass?
At the MachineInstr level you have to know your target's specific
prefetch instruction and insert that directly (using the usual
BuildMI).
Cheers.
Tim.
More information about the llvm-dev
mailing list