[PATCH] Add support for part-word atomics for PPC
Nemanja Ivanovic
nemanja.i.ibm at gmail.com
Thu Mar 5 14:12:32 PST 2015
Hi wschmidt, hfinkel, kbarton,
This patch does two things:
1. Adds support for part-word atomic instructions for Power7 (ISA 2.06) and Power8 (ISA 2.07)
2. Adds the "lock" versions of all of the loads. These are the loads with the Exclusive Access hint bit set to 1
Atomic instructions in the IR will now use the part-word versions on platforms that support them (for types i8 and i16). The lock versions are only available through asm for now.
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8090
Files:
lib/Target/PowerPC/PPC.td
lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h
lib/Target/PowerPC/PPCInstr64Bit.td
lib/Target/PowerPC/PPCInstrInfo.td
lib/Target/PowerPC/PPCSubtarget.h
test/CodeGen/PowerPC/atomic-2.ll
test/MC/Disassembler/PowerPC/ppc64-encoding-bookII.txt
test/MC/PowerPC/ppc64-encoding-bookII.s
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8090.21305.patch
Type: text/x-patch
Size: 23017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150305/c662db61/attachment.bin>
More information about the llvm-commits
mailing list