[PATCH] Introduce prefetch builtin intrinsics for ARM and AArch64

Yi Kong kongy.dev at gmail.com
Wed Aug 13 09:28:42 PDT 2014

On 13 August 2014 17:05, Renato Golin <renato.golin at linaro.org> wrote:
> On 12 August 2014 15:36, Yi Kong <kongy.dev at gmail.com> wrote:
>> ARM supports instruction prefetch which the generic prefetch intrinsic
>> is not able to describe. AArch64 has even more granular instructions.
> Hi Yi,
> I assume you'll map ACLE __p* into variations of Intrinsic::prefetch
> in the same way.
> If that's so, why do you need to add __builtin_arm_prefetch to either
> target? Why not add __pldx as the generic one and get __pld/__pli as
> wrappers around that? Is there already usage of such a builtin
> elsewhere?

__pldx is not an obvious name for generating instruction prefetch as
well as data prefetching, especially when trying to use the intrinsic
directly instead of through the arm_acle header. Also, it is a
Clang/GCC convention to have target-specific builtin intrinsic name to
start with __builtin_{target name}.


More information about the cfe-commits mailing list