[patch] Shark reroute LLVM atomic intrinsics to Zero
theBohemian at gmx.net
Sat Mar 28 16:03:51 PDT 2009
Xerxes Rånby schrieb:
> This patch will make shark reroute LLVM atomic intrinsics to the
> existing atomic operations implemented in Zero.
> This patch are both platform and arch independent.
> I have tested this patch on Shark compiled for X86, PPC and ARM.
I would make this rerouting optional depending on the architecture.
LLVM has atomic intrinsic fucntion support for x86(-64), powerpc (32,64)
and alpha. On those architectures you really want to use what LLVM
E.g. on x86 the function is converted into a series of machine
instructions and no function call.
> The benefit from a porters point of view is that once the atomic
> operation are implemented in Zero you get the atomic operations needed
> for Shark for free without having to extend LLVM.
> I did this mainly because LLVM lacked atomic intrinsics in the ARM backend.
Yes, MIPS, ARM and IA64 would clearly benefit from this and should use
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://mail.openjdk.java.net/pipermail/zero-dev/attachments/20090329/8b0bbdcd/attachment.bin
More information about the zero-dev