diff options
author | Davide Italiano <davide@freebsd.org> | 2016-05-25 23:44:01 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2016-05-25 23:44:01 +0000 |
commit | e3cc8b314d101b73510ce9fab0236f3a675ef907 (patch) | |
tree | c45a323b3e501378812c311353e0af24b1707b91 | |
parent | 9ed5f00026edefe42809ba5b86e29205521415f6 (diff) | |
download | bcm5719-llvm-e3cc8b314d101b73510ce9fab0236f3a675ef907.tar.gz bcm5719-llvm-e3cc8b314d101b73510ce9fab0236f3a675ef907.zip |
[PM/PartiallyInlineLibCalls] Commit missing header.
This should have been committed with the previous commit, but
I forgot to `git add`. Sorry.
llvm-svn: 270800
-rw-r--r-- | llvm/include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/llvm/include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h b/llvm/include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h new file mode 100644 index 00000000000..385bbb40db3 --- /dev/null +++ b/llvm/include/llvm/Transforms/Scalar/PartiallyInlineLibCalls.h @@ -0,0 +1,30 @@ +//===--- PartiallyInlineLibCalls.h - Partially inline libcalls --*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass tries to partially inline the fast path of well-known library +// functions, such as using square-root instructions for cases where sqrt() +// does not need to set errno. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_TRANSFORMS_SCALAR_PARTIALLYINLINELIBCALLS_H +#define LLVM_TRANSFORMS_SCALAR_PARTIALLYINLINELIBCALLS_H + +#include "llvm/IR/Module.h" +#include "llvm/IR/PassManager.h" + +namespace llvm { +class PartiallyInlineLibCallsPass + : public PassInfoMixin<PartiallyInlineLibCallsPass> { +public: + PreservedAnalyses run(Function &F, AnalysisManager<Function> &AM); +}; +} + +#endif // LLVM_TRANSFORMS_SCALAR_PARTIALLYINLINELIBCALLS_H |