diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-10 11:52:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-09-10 11:52:08 +0000 |
commit | 04142bc845c513141046e852db86670505459416 (patch) | |
tree | b0acdedc8a5c1ec1c8bdb92f1c46803201b8985f /include/llvm/Transforms/Utils | |
parent | c1cbfa805b883deb559ecc0343936e18cca9e22f (diff) | |
download | external_llvm-04142bc845c513141046e852db86670505459416.zip external_llvm-04142bc845c513141046e852db86670505459416.tar.gz external_llvm-04142bc845c513141046e852db86670505459416.tar.bz2 |
Move bypassSlowDivision into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163503 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils')
-rw-r--r-- | include/llvm/Transforms/Utils/BypassSlowDivision.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/llvm/Transforms/Utils/BypassSlowDivision.h b/include/llvm/Transforms/Utils/BypassSlowDivision.h index 3646d73..c262434 100644 --- a/include/llvm/Transforms/Utils/BypassSlowDivision.h +++ b/include/llvm/Transforms/Utils/BypassSlowDivision.h @@ -20,10 +20,14 @@ #include "llvm/Function.h" +namespace llvm { + /// This optimization identifies DIV instructions that can be /// profitably bypassed and carried out with a shorter, faster divide. -bool bypassSlowDivision(llvm::Function &F, - llvm::Function::iterator &I, - const llvm::DenseMap<llvm::Type *, llvm::Type *> &BypassTypeMap); +bool bypassSlowDivision(Function &F, + Function::iterator &I, + const DenseMap<Type *, Type *> &BypassTypeMap); + +} // End llvm namespace #endif |