summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/TargetSubtargetInfo.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2014-06-19 21:03:04 +0000
committerEric Christopher <echristo@gmail.com>2014-06-19 21:03:04 +0000
commitc40e5edbbc85ed9346417d13f99137fa66dff1a1 (patch)
tree5b4b60dc1813f203e918a11bac62222e8ad452da /llvm/lib/Target/TargetSubtargetInfo.cpp
parent61d5d38e807b85d5db1fa091e1f6ddcf6e50aff4 (diff)
downloadbcm5719-llvm-c40e5edbbc85ed9346417d13f99137fa66dff1a1.tar.gz
bcm5719-llvm-c40e5edbbc85ed9346417d13f99137fa66dff1a1.zip
Add a new subtarget hook for whether or not we'd like to enable
the atomic load linked expander pass to run for a particular subtarget. This requires a check of the subtarget and so save the TargetMachine rather than only TargetLoweringInfo and update all callers. llvm-svn: 211314
Diffstat (limited to 'llvm/lib/Target/TargetSubtargetInfo.cpp')
-rw-r--r--llvm/lib/Target/TargetSubtargetInfo.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetSubtargetInfo.cpp b/llvm/lib/Target/TargetSubtargetInfo.cpp
index 0c388f8fb26..ce00fcc6273 100644
--- a/llvm/lib/Target/TargetSubtargetInfo.cpp
+++ b/llvm/lib/Target/TargetSubtargetInfo.cpp
@@ -39,6 +39,10 @@ bool TargetSubtargetInfo::useMachineScheduler() const {
return enableMachineScheduler();
}
+bool TargetSubtargetInfo::enableAtomicExpandLoadLinked() const {
+ return true;
+}
+
bool TargetSubtargetInfo::enableMachineScheduler() const {
return false;
}
OpenPOWER on IntegriCloud