Otawa  0.10
CATNode.h
Go to the documentation of this file.
1 /*
2  * CATNode class interface
3  * Copyright (c) 2006, IRIT UPS.
4  *
5  * This file is part of OTAWA
6  *
7  * OTAWA is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * OTAWA is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with OTAWA; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA
21  */
22 #ifndef OTAWA_CAT_CATNODE_H
23 #define OTAWA_CAT_CATNODE_H
24 
25 #include <otawa/instruction.h>
26 #include <otawa/cfg/BasicBlock.h>
27 
28 namespace otawa {
29 
30 class LBlockSet;
31 class LBlock;
32 
33 namespace cat {
34 
35 // CatNode class
36 class CATNode: public elm::inhstruct::DLNode, public PropList {
37 
39  //BasicBlock *headerevolution;
40  bool inloop;
41  //bool hasheaderevolution;
43 
44 
45 public:
46 
47  //constructor
49 
50  // methodes
51 
52  void setHEADERLBLOCK(BasicBlock *hlb,bool loop);
53  //void setHEADEREVOLUTION(BasicBlock *hev, bool evolution);
54  BasicBlock *HEADERLBLOCK(void);
55  //BasicBlock *HEADEREVOLUTION(void);
56  bool INLOOP (void);
57  //bool HASHEADEREVOLUTION(void);
58  LBlock *lblock(){return lbl;};
59 };
60 
61 } } // otawa::cat
62 
63 #endif // OTAWA_CAT_CATNODE_H
LBlock * lbl
Definition: CATNode.h:42
bool inloop
Definition: CATNode.h:40
LBlock * lblock()
Definition: CATNode.h:58
bool INLOOP(void)
Definition: cat_CATNode.cpp:48
void setHEADERLBLOCK(BasicBlock *hlb, bool loop)
Definition: cat_CATNode.cpp:34
The l-block is an abstraction allowing to split the basic block according to the bound of the cache b...
Definition: LBlock.h:43
BasicBlock * HEADERLBLOCK(void)
Definition: cat_CATNode.cpp:42
This is the minimal definition of a basic block.
Definition: BasicBlock.h:43
BasicBlock * headerlblock
Definition: CATNode.h:38
This a list of properties.
Definition: PropList.h:63
Definition: CATNode.h:36
CATNode(LBlock *lblock)
Definition: cat_CATNode.cpp:29