summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86Subtarget.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-04-01 20:38:36 +0000
committerDan Gohman <gohman@apple.com>2008-04-01 20:38:36 +0000
commit980d7200c10468670d8da5dbb76de9d74eced59a (patch)
tree461dd828674788658139d6c1615f9234a22d3663 /llvm/lib/Target/X86/X86Subtarget.h
parent5e4e051c2ad770a0fbdfbf47cd50da8a732cadf4 (diff)
downloadbcm5719-llvm-980d7200c10468670d8da5dbb76de9d74eced59a.tar.gz
bcm5719-llvm-980d7200c10468670d8da5dbb76de9d74eced59a.zip
Speculatively micro-optimize memory-zeroing calls on Darwin 10.
llvm-svn: 49048
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-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 6488d474d19..c91088dcdf6 100644
--- a/llvm/lib/Target/X86/X86Subtarget.h
+++ b/llvm/lib/Target/X86/X86Subtarget.h
@@ -171,6 +171,12 @@ public:
bool GVRequiresExtraLoad(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
+ /// memset with zero passed as the second argument. Otherwise it
+ /// returns null.
+ const char *getBZeroEntry() const;
};
namespace X86 {
OpenPOWER on IntegriCloud