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