[llvm-dev] How to add NOP?

Erdem Derebaşoğlu via llvm-dev llvm-dev at lists.llvm.org
Tue Sep 15 03:55:51 PDT 2015


I would like to convert a C file that uses OpenMP library to X86 code with a condition: I want to insert a NOP before each instruction that does a private memory access.I have written an optimization pass that inserts an inline assembly call (NOP) but it is applied at IR level, and I cannot determine where to insert it. How can I use LLVM to add NOPs accordingly?
Thanks. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150915/6d1c13cf/attachment.html>


More information about the llvm-dev mailing list