diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-08-03 21:06:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-08-03 21:06:02 +0000 |
commit | 30a49e93e3d45e4f4511387ce74bc0e00b7a4870 (patch) | |
tree | 80557998e81b2e98bfb95015618d729ecfd1d854 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | 16fc2cc9fa18eb20f77695a09e1548cafa6c3e79 (diff) | |
download | bcm5719-llvm-30a49e93e3d45e4f4511387ce74bc0e00b7a4870.tar.gz bcm5719-llvm-30a49e93e3d45e4f4511387ce74bc0e00b7a4870.zip |
New approach to r136737: insert the necessary fences for atomic ops in platform-independent code, since a bunch of platforms (ARM, Mips, PPC, Alpha are the relevant targets here) need to do essentially the same thing.
I think this completes the basic CodeGen for atomicrmw and cmpxchg.
llvm-svn: 136813
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index ff4f1997cca..78a75f96816 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -401,6 +401,8 @@ PPCTargetLowering::PPCTargetLowering(PPCTargetMachine &TM) if (PPCSubTarget.isDarwin()) setPrefFunctionAlignment(4); + setInsertFencesForAtomic(true); + computeRegisterProperties(); } |