[LLVMdev] __builtin___clear_cache (original) (raw)

JF Bastien jfb at google.com
Fri Mar 14 09:34:08 PDT 2014


How does this overlap with:

http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140310/thread.html#208333

Committed in r203674?

The bug mentions doing the mov r7 and svc, when the above code already does it, I'm somewhat confused.

On Fri, Mar 14, 2014 at 9:11 AM, Renato Golin <renato.golin at linaro.org>wrote:

Folks,

To implement this bug: http://llvm.org/bugs/showbug.cgi?id=19142 I need an LLVM intrinsic to communicate the need to lower the builtin wither to noop or a call or even a sequence of instructions. I thought about: void @llvm.clearcache(i8 * begin, i8 * end) to simulate precisely GCC's builtin: _void builtin_clearcache (char *begin, char *end) which will be, by default, nothing. On ARM and MIPS, it'll call _clearcache. Is that a good plan? cheers, --renato


LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140314/378515ac/attachment.html>



More information about the llvm-dev mailing list