summaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-08-03 21:06:02 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-08-03 21:06:02 +0000
commit26689ac37ebec3b358588089415509285e558de9 (patch)
tree78baa33160fd79d898ce2211f57edab1ed05d16c /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent866ec865424e670918a14df2a695691c3372faf0 (diff)
downloadllvm-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/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/TargetLowering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 335eca787f..49b0f1b8ef 100644
--- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -617,6 +617,7 @@ TargetLowering::TargetLowering(const TargetMachine &tm,
PrefLoopAlignment = 0;
MinStackArgumentAlignment = 1;
ShouldFoldAtomicFences = false;
+ InsertFencesForAtomic = false;
InitLibcallNames(LibcallRoutineNames);
InitCmpLibcallCCs(CmpLibcallCCs);