mini-llvm 0.1.0
Loading...
Searching...
No Matches
FunctionInlining.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 FunctionInlining(size_t calleeThreshold, size_t callerThreshold)
16 : calleeThreshold_(calleeThreshold), callerThreshold_(callerThreshold) {}
17
18 bool runOnFunction(Function &F) override;
19
20private:
21 size_t calleeThreshold_;
22 size_t callerThreshold_;
23};
24
25} // namespace mini_llvm::ir
#define MINI_LLVM_EXPORT
Definition Compiler.h:17
FunctionInlining(size_t calleeThreshold, size_t callerThreshold)
Definition FunctionInlining.h:15
bool runOnFunction(Function &F) override
Definition FunctionTransform.h:12
Definition Function.h:34
Definition Argument.h:13