ADTast-experimentalpthread-emulation
Last change
on this file since 41a6a78 was
ca8c0362,
checked in by Peter A. Buhr <pabuhr@…>, 3 years ago
|
formatting
|
-
Property mode set to
100644
|
File size:
989 bytes
|
Line | |
---|
1 | // |
---|
2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
3 | // |
---|
4 | // The contents of this file are covered under the licence agreement in the |
---|
5 | // file "LICENCE" distributed with Cforall. |
---|
6 | // |
---|
7 | // LabelGenerator.h -- |
---|
8 | // |
---|
9 | // Author : Rodolfo G. Esteves |
---|
10 | // Created On : Mon May 18 07:44:20 2015 |
---|
11 | // Last Modified By : Peter A. Buhr |
---|
12 | // Last Modified On : Mon Jan 31 22:30:10 2022 |
---|
13 | // Update Count : 16 |
---|
14 | // |
---|
15 | |
---|
16 | #pragma once |
---|
17 | |
---|
18 | #include <string> // for string |
---|
19 | |
---|
20 | #include "SynTree/Label.h" // for Label |
---|
21 | |
---|
22 | class Statement; |
---|
23 | |
---|
24 | namespace ast { |
---|
25 | class Stmt; |
---|
26 | class Label; |
---|
27 | } |
---|
28 | |
---|
29 | namespace ControlStruct { |
---|
30 | class LabelGenerator { |
---|
31 | static int current; |
---|
32 | static LabelGenerator *labelGenerator; |
---|
33 | protected: |
---|
34 | LabelGenerator() {} |
---|
35 | public: |
---|
36 | static LabelGenerator *getGenerator(); |
---|
37 | static Label newLabel(std::string suffix, Statement * stmt = nullptr); |
---|
38 | }; |
---|
39 | } // namespace ControlStruct |
---|
40 | |
---|
41 | // Local Variables: // |
---|
42 | // tab-width: 4 // |
---|
43 | // mode: c++ // |
---|
44 | // compile-command: "make install" // |
---|
45 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.