<div dir="ltr">How does this overlap with:<blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><a href="http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140310/thread.html#208333">http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140310/thread.html#208333</a></div>
</blockquote><div>Committed in <span style="color:rgb(0,0,0);white-space:pre-wrap">r203674?</span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap">The bug mentions doing the mov r7 and svc, when the above code already does it, I'm somewhat confused.</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 14, 2014 at 9:11 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Folks,<br>
<br>
To implement this bug:<br>
<br>
<a href="http://llvm.org/bugs/show_bug.cgi?id=19142" target="_blank">http://llvm.org/bugs/show_bug.cgi?id=19142</a><br>
<br>
I need an LLVM intrinsic to communicate the need to lower the builtin<br>
wither to noop or a call or even a sequence of instructions. I thought<br>
about:<br>
<br>
  void @llvm.clear_cache(i8 * begin, i8 * end)<br>
<br>
to simulate precisely GCC's builtin:<br>
<br>
  void __builtin___clear_cache (char *begin, char *end)<br>
<br>
which will be, by default, nothing. On ARM and MIPS, it'll call __clear_cache.<br>
<br>
Is that a good plan?<br>
<br>
cheers,<br>
--renato<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>