summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMSubtarget.h
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/ARM/ARMSubtarget.h
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/ARM/ARMSubtarget.h')
-rw-r--r--llvm/lib/Target/ARM/ARMSubtarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h
index ae62a6f876f..c13ef865389 100644
--- a/llvm/lib/Target/ARM/ARMSubtarget.h
+++ b/llvm/lib/Target/ARM/ARMSubtarget.h
@@ -425,6 +425,9 @@ public:
TargetSubtargetInfo::AntiDepBreakMode& Mode,
RegClassVector& CriticalPathRCs) const override;
+ // enableAtomicExpandLoadLinked - True if we need to expand our atomics.
+ bool enableAtomicExpandLoadLinked() const override;
+
/// getInstrItins - Return the instruction itineraies based on subtarget
/// selection.
const InstrItineraryData &getInstrItineraryData() const { return InstrItins; }
OpenPOWER on IntegriCloud