data prefetch for machine instruction

Hi,

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?

Best,

Mohammad

At the MachineInstr level you have to know your target's specific
prefetch instruction and insert that directly (using the usual
BuildMI).

Cheers.

Tim.