aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 21:52:08 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2010-07-24 21:52:08 +0000
commitcec36f4c1118dc8388910d4753fe7cbf88d2d793 (patch)
tree22c17028e13afec642876ead757e6aa5c42bb78c /include/llvm/Target
parentde4e94a18cbf259ca0f5800e7efaa5d6a697c1d8 (diff)
downloadexternal_llvm-cec36f4c1118dc8388910d4753fe7cbf88d2d793.zip
external_llvm-cec36f4c1118dc8388910d4753fe7cbf88d2d793.tar.gz
external_llvm-cec36f4c1118dc8388910d4753fe7cbf88d2d793.tar.bz2
Hook in GlobalMerge pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109359 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target')
-rw-r--r--include/llvm/Target/TargetLowering.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 2d8838c..197b8d1 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -792,6 +792,12 @@ public:
return false;
}
+ /// getMaximalGlobalOffset - Returns the maximal possible offset which can be
+ /// used for loads / stores from the global.
+ virtual unsigned getMaximalGlobalOffset() const {
+ return 0;
+ }
+
//===--------------------------------------------------------------------===//
// TargetLowering Optimization Methods
//