OpenASIP
2.0
src
applibs
Scheduler
Algorithms
BFUnscheduleMove.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2014 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
25
/**
26
* @file BFUnscheduleMove.hh
27
*
28
* Declaration of BFUnscheduleMove class
29
*
30
* Unschedules a move.
31
*
32
* @author Heikki Kultala 2014-2020(heikki.kultala-no.spam-tuni.fi)
33
* @note rating: red
34
*/
35
36
#ifndef BF_UNSCHEDULE_MOVE_HH
37
#define BF_UNSCHEDULE_MOVE_HH
38
39
#include "
BFOptimization.hh
"
40
41
namespace
TTAMachine
{
42
class
Bus;
43
class
FunctionUnit;
44
}
45
46
class
MoveNode
;
47
48
class
BFUnscheduleMove
:
public
BFOptimization
{
49
50
public
:
51
BFUnscheduleMove
(
52
BF2Scheduler
& sched,
MoveNode
& mn) :
53
BFOptimization
(sched),
mn_
(mn),
prologBus_
(NULL),
54
oldImmWriteCycle_
(-1),
prologImmWriteCycle_
(-1),
dstFU_
(NULL),
55
srcFU_
(NULL),
immu_
(NULL),
immRegIndex_
(-1) {}
56
void
unscheduleOriginal
();
57
void
undoOnlyMe
();
58
bool
operator()
();
59
protected
:
60
void
returnOriginal
();
61
MoveNode
&
mn_
;
62
int
oldCycle_
;
63
const
TTAMachine::Bus
*
oldBus_
;
64
const
TTAMachine::Bus
*
prologBus_
;
65
int
oldImmWriteCycle_
;
66
int
prologImmWriteCycle_
;
67
const
TTAMachine::FunctionUnit
*
dstFU_
;
68
const
TTAMachine::FunctionUnit
*
srcFU_
;
69
const
TTAMachine::ImmediateUnit
*
immu_
;
70
int
immRegIndex_
;
71
static
int
recurseCounter_
;
72
};
73
74
#endif
BFUnscheduleMove::oldBus_
const TTAMachine::Bus * oldBus_
Definition:
BFUnscheduleMove.hh:63
BFUnscheduleMove::operator()
bool operator()()
Definition:
BFUnscheduleMove.cc:152
TTAMachine::Bus
Definition:
Bus.hh:53
BFUnscheduleMove::returnOriginal
void returnOriginal()
Definition:
BFUnscheduleMove.cc:107
MoveNode
Definition:
MoveNode.hh:65
BFUnscheduleMove::dstFU_
const TTAMachine::FunctionUnit * dstFU_
Definition:
BFUnscheduleMove.hh:67
BFUnscheduleMove::undoOnlyMe
void undoOnlyMe()
Definition:
BFUnscheduleMove.cc:144
BFOptimization
Definition:
BFOptimization.hh:73
BFUnscheduleMove::oldCycle_
int oldCycle_
Definition:
BFUnscheduleMove.hh:62
BFUnscheduleMove::mn_
MoveNode & mn_
Definition:
BFUnscheduleMove.hh:61
BFUnscheduleMove::oldImmWriteCycle_
int oldImmWriteCycle_
Definition:
BFUnscheduleMove.hh:65
TTAMachine::FunctionUnit
Definition:
FunctionUnit.hh:55
BFUnscheduleMove::recurseCounter_
static int recurseCounter_
Definition:
BFUnscheduleMove.hh:71
BF2Scheduler
Definition:
BF2Scheduler.hh:74
BFUnscheduleMove::BFUnscheduleMove
BFUnscheduleMove(BF2Scheduler &sched, MoveNode &mn)
Definition:
BFUnscheduleMove.hh:51
BFUnscheduleMove::immu_
const TTAMachine::ImmediateUnit * immu_
Definition:
BFUnscheduleMove.hh:69
BFUnscheduleMove::unscheduleOriginal
void unscheduleOriginal()
Definition:
BFUnscheduleMove.cc:47
BFUnscheduleMove::prologBus_
const TTAMachine::Bus * prologBus_
Definition:
BFUnscheduleMove.hh:64
BFUnscheduleMove::immRegIndex_
int immRegIndex_
Definition:
BFUnscheduleMove.hh:70
BFUnscheduleMove::srcFU_
const TTAMachine::FunctionUnit * srcFU_
Definition:
BFUnscheduleMove.hh:68
BFUnscheduleMove
Definition:
BFUnscheduleMove.hh:48
TTAMachine
Definition:
Assembler.hh:48
BFOptimization.hh
BFUnscheduleMove::prologImmWriteCycle_
int prologImmWriteCycle_
Definition:
BFUnscheduleMove.hh:66
TTAMachine::ImmediateUnit
Definition:
ImmediateUnit.hh:50
Generated by
1.8.17