mini-llvm 0.1.0
Loading...
Searching...
No Matches
TailDuplication.h
Go to the documentation of this file.
1// SPDX-License-Identifier: MIT
2
3#pragma once
4
5#include <cstddef>
6
10
11namespace mini_llvm::ir {
12
14public:
15 explicit TailDuplication(size_t threshold) : threshold_(threshold) {}
16
17 bool runOnFunction(Function &F) override;
18
19private:
20 size_t threshold_;
21};
22
23} // namespace mini_llvm::ir
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
Definition FunctionTransform.h:12
Definition Function.h:34
bool runOnFunction(Function &F) override
TailDuplication(size_t threshold)
Definition TailDuplication.h:15
Definition Argument.h:13