OpenASIP
2.0
src
applibs
Scheduler
ProgramRepresentations
DDG
GlobalVsStackAA.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2016 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 ConstantVsStackAA.hh
26
*
27
* Declaration of ConstantVsStackAA class.
28
*
29
* This class known that stack offsets and direct addresses
30
* to globals cannot alias.
31
*
32
* @author Heikki Kultala 2016 (heikki.kultala-no.spam-tut.fi)
33
* @note rating: red
34
*/
35
36
#include "
MemoryAliasAnalyzer.hh
"
37
#include "
TCEString.hh
"
38
39
class
GlobalVsStackAA
:
public
MemoryAliasAnalyzer
{
40
public
:
41
virtual
bool
isAddressTraceable
(
42
DataDependenceGraph
& ddg,
const
ProgramOperation
& pop);
43
virtual
AliasingResult
analyze
(
44
DataDependenceGraph
& ddg,
const
ProgramOperation
& pop1,
45
const
ProgramOperation
& pop2,
MoveNodeUse::BBRelation
bbInfo);
46
47
GlobalVsStackAA
(
const
TCEString
& sp);
48
virtual
~GlobalVsStackAA
();
49
private
:
50
TCEString
sp_
;
51
};
MoveNodeUse::BBRelation
BBRelation
Definition:
MoveNodeUse.hh:23
GlobalVsStackAA::analyze
virtual AliasingResult analyze(DataDependenceGraph &ddg, const ProgramOperation &pop1, const ProgramOperation &pop2, MoveNodeUse::BBRelation bbInfo)
Definition:
GlobalVsStackAA.cc:17
ProgramOperation
Definition:
ProgramOperation.hh:70
TCEString.hh
MemoryAliasAnalyzer::AliasingResult
AliasingResult
Definition:
MemoryAliasAnalyzer.hh:50
GlobalVsStackAA
Definition:
GlobalVsStackAA.hh:39
MemoryAliasAnalyzer
Definition:
MemoryAliasAnalyzer.hh:47
GlobalVsStackAA::isAddressTraceable
virtual bool isAddressTraceable(DataDependenceGraph &ddg, const ProgramOperation &pop)
Definition:
GlobalVsStackAA.cc:7
TCEString
Definition:
TCEString.hh:53
DataDependenceGraph
Definition:
DataDependenceGraph.hh:67
MemoryAliasAnalyzer.hh
GlobalVsStackAA::sp_
TCEString sp_
Definition:
GlobalVsStackAA.hh:50
GlobalVsStackAA::~GlobalVsStackAA
virtual ~GlobalVsStackAA()
Definition:
GlobalVsStackAA.cc:37
GlobalVsStackAA::GlobalVsStackAA
GlobalVsStackAA(const TCEString &sp)
Definition:
GlobalVsStackAA.cc:39
Generated by
1.8.17