aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetSubtarget.h
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-08-13 16:05:04 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-08-13 16:05:04 +0000
commit710461688bba935f0ad5c75da7fec2ad0f225c00 (patch)
treef26db302a151e97f9a4196ec98b0df433f8ed2d8 /include/llvm/Target/TargetSubtarget.h
parent524dea4d4ca6ecafa18e1e011934a2129c770f4f (diff)
downloadexternal_llvm-710461688bba935f0ad5c75da7fec2ad0f225c00.zip
external_llvm-710461688bba935f0ad5c75da7fec2ad0f225c00.tar.gz
external_llvm-710461688bba935f0ad5c75da7fec2ad0f225c00.tar.bz2
Add callback to allow target to adjust latency of schedule dependency edge.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78910 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetSubtarget.h')
-rw-r--r--include/llvm/Target/TargetSubtarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetSubtarget.h b/include/llvm/Target/TargetSubtarget.h
index eca45eb..c86e815 100644
--- a/include/llvm/Target/TargetSubtarget.h
+++ b/include/llvm/Target/TargetSubtarget.h
@@ -16,6 +16,8 @@
namespace llvm {
+class SDep;
+
//===----------------------------------------------------------------------===//
///
/// TargetSubtarget - Generic base class for all target subtargets. All
@@ -35,6 +37,10 @@ public:
/// indicating the number of scheduling cycles of backscheduling that
/// should be attempted.
virtual unsigned getSpecialAddressLatency() const { return 0; }
+
+ // adjustSchedDependency - Perform target specific adjustments to
+ // the latency of a schedule dependency.
+ virtual void adjustSchedDependency(SDep&) const { };
};
} // End llvm namespace