mini-llvm
0.1.0
Toggle main menu visibility
Loading...
Searching...
No Matches
RedundantLoadElimination.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
3
#pragma once
4
5
#include "
mini-llvm/ir/Function.h
"
6
#include "
mini-llvm/opt/ir/FunctionTransform.h
"
7
#include "
mini-llvm/utils/Compiler.h
"
8
9
namespace
mini_llvm::ir
{
10
11
class
MINI_LLVM_EXPORT
RedundantLoadElimination
:
public
FunctionTransform
{
12
public
:
13
explicit
RedundantLoadElimination
(
int
pointerSize)
14
: pointerSize_(pointerSize) {}
15
16
bool
runOnFunction
(
Function
&F)
override
;
17
18
private
:
19
int
pointerSize_;
20
};
21
22
}
// namespace mini_llvm::ir
Compiler.h
MINI_LLVM_EXPORT
#define MINI_LLVM_EXPORT
Definition
Compiler.h:17
mini_llvm::ir::FunctionTransform
Definition
FunctionTransform.h:12
mini_llvm::ir::Function
Definition
Function.h:34
mini_llvm::ir::RedundantLoadElimination::RedundantLoadElimination
RedundantLoadElimination(int pointerSize)
Definition
RedundantLoadElimination.h:13
mini_llvm::ir::RedundantLoadElimination::runOnFunction
bool runOnFunction(Function &F) override
FunctionTransform.h
Function.h
mini_llvm::ir
Definition
Argument.h:13
include
mini-llvm
opt
ir
passes
RedundantLoadElimination.h
Generated by
1.17.0