[PATCH] Add HLE target feature

Krzysztof Parzyszek kparzysz at codeaurora.org
Wed Feb 27 16:39:22 PST 2013


On 2/27/2013 6:23 PM, Jeffrey Yasskin wrote:
>
> I'm curious how Power can take advantage of HLE metadata. Could you
> post an example LLVM IR sequence and its expansion into both x86 and
> Power assembly?

A2 has some support for "writeless" locks: there is a "ldawx" 
instruction that sets a watchpoint associated with the cache line from 
which the load occured. If other threads write into that cache line, the 
watchpoint is cleared.  The thread can then test if all the watchpoints 
are still set (or if one or more has been cleared).

This is not a part of the PowerPC ISA, btw.

-Krzysztof

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation



More information about the llvm-commits mailing list