From 6cd461f358b227a0dce4d8ef6d872aa3a192f367 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sat, 24 Jul 2010 21:52:08 +0000 Subject: Hook in GlobalMerge pass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109359 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetLowering.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm/Target/TargetLowering.h') 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 // -- cgit v1.1