Jlm
jlm
hls
opt
cne.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2017 Nico Reißmann <nico.reissmann@gmail.com>
3
* See COPYING for terms of redistribution.
4
*/
5
6
#ifndef JLM_HLS_OPT_CNE_HPP
7
#define JLM_HLS_OPT_CNE_HPP
8
9
#include <
jlm/rvsdg/Transformation.hpp
>
10
11
namespace
jlm::hls
12
{
13
14
// FIXME
15
// The CommonNodeElimination optimization should be generalized such that it can be used for both
16
// the LLVM and HLS backend.
17
23
class
CommonNodeElimination
final :
public
rvsdg::Transformation
24
{
25
class
Statistics
;
26
27
public
:
28
~CommonNodeElimination
() noexcept override;
29
30
CommonNodeElimination
()
31
:
Transformation
("
CommonNodeElimination
")
32
{}
33
34
void
35
Run
(
rvsdg::RvsdgModule
& module,
util::StatisticsCollector
& statisticsCollector)
override
;
36
};
37
38
}
39
40
#endif
Transformation.hpp
jlm::hls::CommonNodeElimination::Statistics
Definition:
cne.cpp:25
jlm::hls::CommonNodeElimination
Common Node Elimination This is mainly a copy of the CNE optimization in the LLVM backend with the ad...
Definition:
cne.hpp:24
jlm::hls::CommonNodeElimination::~CommonNodeElimination
~CommonNodeElimination() noexcept override
jlm::hls::CommonNodeElimination::Run
void Run(rvsdg::RvsdgModule &module, util::StatisticsCollector &statisticsCollector) override
Perform RVSDG transformation.
Definition:
cne.cpp:623
jlm::rvsdg::RvsdgModule
Definition:
RvsdgModule.hpp:20
jlm::rvsdg::Transformation
Represents an RVSDG transformation.
Definition:
Transformation.hpp:21
jlm::util::StatisticsCollector
Definition:
Statistics.hpp:432
jlm::hls
Definition:
FirrtlToVerilogConverter.cpp:18
Generated by
1.9.1