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 | 26689ac37ebec3b358588089415509285e558de9 (patch) | |
tree | 78baa33160fd79d898ce2211f57edab1ed05d16c /lib/Target/Alpha | |
parent | 866ec865424e670918a14df2a695691c3372faf0 (diff) | |
download | llvm-26689ac37ebec3b358588089415509285e558de9.tar.gz llvm-26689ac37ebec3b358588089415509285e558de9.tar.bz2 llvm-26689ac37ebec3b358588089415509285e558de9.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha')
-rw-r--r-- | lib/Target/Alpha/AlphaISelLowering.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/Alpha/AlphaISelLowering.cpp b/lib/Target/Alpha/AlphaISelLowering.cpp index de003fb4c6..8fb6340030 100644 --- a/lib/Target/Alpha/AlphaISelLowering.cpp +++ b/lib/Target/Alpha/AlphaISelLowering.cpp @@ -160,6 +160,8 @@ AlphaTargetLowering::AlphaTargetLowering(TargetMachine &TM) setMinFunctionAlignment(4); + setInsertFencesForAtomic(true); + computeRegisterProperties(); } |