[patch] implement __clear_cache for arm32 & mips

Narayan Kamath narayan at google.com
Fri Mar 7 01:09:42 PST 2014

Isn't that a separate discussion ? I.e, I think we need both
__clear_cache and the corresponding builtin.

gcc has a __clear_cache in libgcc as well, though it isn't clear
to me if it ever emits calls to that methods or whether the builtin
can handle all architectures that it supports.

On Fri, Mar 7, 2014 at 8:52 AM, Renato Golin <renato.golin at linaro.org>wrote:

> On 6 March 2014 02:37, JF Bastien <jfb at google.com> wrote:
> > I don't think copy/paste is the right thing, but calling svc is simple
> > enough that a different implementation (one for ARM and one for Thumb)
> > should work, in the same style as other inline asm in this file.
> Would it be a good idea to implement __builtin___clear_cache like in
> GCC 4.3, so that we can emit instructions based on the backend, and
> call __clear_cache as a fall back?
> --renato

Save Rainforests
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140307/f8bc9655/attachment.html>

More information about the llvm-commits mailing list