OpenASIP 2.2
Loading...
Searching...
No Matches
BFDRELoop.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 BFDRELoop.hh
27 *
28 * Declaration of BFDRELoop class
29 *
30 * Performs a dead-result elimination of a loop-bypassed move.
31 * The move which is eliminated from the loop body is still left
32 * in the epilog, to have correct value for the register after
33 * the loop.
34 *
35 * @author Heikki Kultala 2014-2020(heikki.kultala-no.spam-tuni.fi)
36 * @note rating: red
37 */
38
39#ifndef BF_DRE_LOOP_HH
40#define BF_DRE_LOOP_HH
41
42#include "BFKillNode.hh"
43
44class MoveNode;
45
46class BFDRELoop : public BFKillNode {
47public:
48 BFDRELoop(BF2Scheduler& sched, MoveNode& mn, int srcCycle) :
49 BFKillNode(sched, mn), srcCycle_(srcCycle), prologMN_(NULL),
51 bool operator()();
52 void undoOnlyMe();
53 bool dreAllowed();
54private:
55 unsigned int srcCycle_;
58};
59
60#endif
find Finds info of the inner loops in the false
void undoOnlyMe()
Definition BFDRELoop.cc:93
bool dreAllowed()
Definition BFDRELoop.cc:107
unsigned int srcCycle_
Definition BFDRELoop.hh:55
bool createdPrologCopy_
Definition BFDRELoop.hh:57
bool operator()()
Definition BFDRELoop.cc:46
MoveNode * prologMN_
Definition BFDRELoop.hh:56
BFDRELoop(BF2Scheduler &sched, MoveNode &mn, int srcCycle)
Definition BFDRELoop.hh:48