Mohammad Norouzi via llvm-dev
2016-Mar-21 17:55 UTC
[llvm-dev] 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160321/1eac9c3d/attachment.html>
Tim Northover via llvm-dev
2016-Mar-21 18:14 UTC
[llvm-dev] data prefetch for machine instruction
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.