Forgot a file.
authorDale Johannesen <dalej@apple.com>
Fri, 5 Dec 2008 21:55:35 +0000 (21:55 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 5 Dec 2008 21:55:35 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60609 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86Subtarget.h

index f49008ad69e69416413efee57674aff69680ce61..5eb89d605d198202674064667346c6a7d9c9c4a3 100644 (file)
@@ -179,6 +179,12 @@ public:
   bool GVRequiresExtraLoad(const GlobalValue* GV, const TargetMachine& TM,
                            bool isDirectCall) const;
 
+  /// True if accessing the GV requires a register.  This is a superset of the
+  /// cases where GVRequiresExtraLoad is true.  Some variations of PIC require
+  /// a register, but not an extra load.
+  bool GVRequiresRegister(const GlobalValue* GV, const TargetMachine& TM,
+                           bool isDirectCall) const;
+
   /// This function returns the name of a function which has an interface
   /// like the non-standard bzero function, if such a function exists on
   /// the current subtarget and it is considered prefereable over