OpenASIP
2.0
src
applibs
Scheduler
Selector
MoveNodeSelector.cc
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 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
* @file MoveNodeSelector.cc
26
*
27
* Implementation of MoveNodeSelector interface.
28
*
29
* @author Pekka Jääskeläinen 2007 (pekka.jaaskelainen-no.spam-tut.fi)
30
* @note rating: red
31
*/
32
33
#include "
MoveNodeSelector.hh
"
34
#include "
Application.hh
"
35
36
/**
37
* Constructor.
38
*/
39
MoveNodeSelector::MoveNodeSelector
() {
40
}
41
42
/**
43
* Destructor.
44
*/
45
MoveNodeSelector::~MoveNodeSelector
() {
46
}
47
48
/**
49
* Returns a group of move nodes which should be scheduled next.
50
*
51
* By default returns an empty group. A non-empty group is guaranteed to
52
* contain at least one unscheduled move, but not all of them necessarily
53
* are.
54
*
55
* @return Move node group.
56
*/
57
MoveNodeGroup
58
MoveNodeSelector::candidates
() {
59
return
MoveNodeGroup
();
60
}
61
62
#pragma GCC diagnostic ignored "-Wunused-parameter"
63
/**
64
* This should be called by the client as soon as a MoveNode is scheduled
65
* in order to update the internal state of the selector.
66
*
67
* @param node The scheduled MoveNode.
68
*/
69
void
70
MoveNodeSelector::notifyScheduled
(
MoveNode
&
/*node*/
) {
71
assert
(
false
&&
"Should never be called. Here just to avoid warning."
);
72
}
73
74
75
/**
76
* This should be called by the client when some incoming dependence to
77
* a moveNode is removed.
78
*
79
* @param node Node which has lost some incoming dependence
80
*/
81
void
82
MoveNodeSelector::mightBeReady
(
MoveNode
&
/*node*/
) {
83
assert
(
false
&&
"Should never be called. Here just to avoid warning."
);
84
}
MoveNode
Definition:
MoveNode.hh:65
MoveNodeSelector::notifyScheduled
virtual void notifyScheduled(MoveNode &node)=0
Definition:
MoveNodeSelector.cc:70
MoveNodeSelector::MoveNodeSelector
MoveNodeSelector()
Definition:
MoveNodeSelector.cc:39
MoveNodeSelector.hh
assert
#define assert(condition)
Definition:
Application.hh:86
MoveNodeSelector::candidates
virtual MoveNodeGroup candidates()=0
Definition:
MoveNodeSelector.cc:58
Application.hh
MoveNodeSelector::~MoveNodeSelector
virtual ~MoveNodeSelector()
Definition:
MoveNodeSelector.cc:45
MoveNodeSelector::mightBeReady
virtual void mightBeReady(MoveNode &node)=0
Definition:
MoveNodeSelector.cc:82
MoveNodeGroup
Definition:
MoveNodeGroup.hh:48
Generated by
1.8.17