llir-opt
0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Main Page
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Functions
Files
File List
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
passes
dead_store.h
1
// This file if part of the llir-opt project.
2
// Licensing information can be found in the LICENSE file.
3
// (C) 2018 Nandor Licker. All rights reserved.
4
5
#pragma once
6
7
#include "core/pass.h"
8
9
class
Func
;
10
11
12
16
class
DeadStorePass
final :
public
Pass
{
17
public
:
19
static
const
char
*
kPassID
;
20
22
DeadStorePass
(
PassManager
*passManager) :
Pass
(passManager) {}
23
25
bool
Run
(
Prog
&prog)
override
;
26
28
const
char
*
GetPassName
()
const override
;
29
30
private
:
32
bool
RemoveLocalDeadStores(
Func
&prog);
34
bool
RemoveTautologicalStores(
Prog
&prog);
35
};
DeadStorePass::DeadStorePass
DeadStorePass(PassManager *passManager)
Initialises the pass.
Definition:
dead_store.h:22
Func
Definition:
func.h:30
PassManager
Definition:
pass_manager.h:74
Pass
Definition:
pass.h:17
DeadStorePass::Run
bool Run(Prog &prog) override
Runs the pass.
Definition:
dead_store.cpp:36
DeadStorePass
Definition:
dead_store.h:16
Prog
Definition:
prog.h:33
DeadStorePass::GetPassName
const char * GetPassName() const override
Returns the name of the pass.
Definition:
dead_store.cpp:30
DeadStorePass::kPassID
static const char * kPassID
Pass identifier.
Definition:
dead_store.h:19
Generated by
1.8.17