aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-12-05 21:55:35 +0000
committerDale Johannesen <dalej@apple.com>2008-12-05 21:55:35 +0000
commit69f5ba64b134cb9fd99b12926db99842f89cc603 (patch)
tree33e5b9baf4ac6fa95a498b9e6c37215c422be599 /lib
parent64660e9df5ef3c31c428fb1e2623382fac71ceff (diff)
downloadexternal_llvm-69f5ba64b134cb9fd99b12926db99842f89cc603.zip
external_llvm-69f5ba64b134cb9fd99b12926db99842f89cc603.tar.gz
external_llvm-69f5ba64b134cb9fd99b12926db99842f89cc603.tar.bz2
Forgot a file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60609 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86Subtarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h
index f49008a..5eb89d6 100644
--- a/lib/Target/X86/X86Subtarget.h
+++ b/lib/Target/X86/X86Subtarget.h
@@ -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