summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitb49d7cf19e943878c24745da2d061bb8f7f1cb5e (patch)
treed56af931b3f386228af81554f5ca9316e7dc145f /llvm/lib
parent9efd2ce55bc3525950f815fb240061e88d6e0073 (diff)
downloadbcm5719-llvm-b49d7cf19e943878c24745da2d061bb8f7f1cb5e.tar.gz
bcm5719-llvm-b49d7cf19e943878c24745da2d061bb8f7f1cb5e.zip
Forgot a file.
llvm-svn: 60609
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86Subtarget.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h
index f49008ad69e..5eb89d605d1 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/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
OpenPOWER on IntegriCloud