[cfe-dev] __builtin___clear_cache

Renato Golin renato.golin at linaro.org
Fri Mar 14 09:11:26 PDT 2014


Folks,

To implement this bug:

http://llvm.org/bugs/show_bug.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.clear_cache(i8 * begin, i8 * end)

to simulate precisely GCC's builtin:

  void __builtin___clear_cache (char *begin, char *end)

which will be, by default, nothing. On ARM and MIPS, it'll call __clear_cache.

Is that a good plan?

cheers,
--renato



More information about the cfe-dev mailing list