ADTast-experimentalpthread-emulation
Last change
on this file since 41a6a78 was
39d8950,
checked in by Andrew Beach <ajbeach@…>, 2 years ago
|
Thread global information through resolution. Non-top-level calls to the resolver have a bit of a hack but improvements would require changes to the Pass helpers.
|
-
Property mode set to
100644
|
File size:
907 bytes
|
Rev | Line | |
---|
[1be1e5a] | 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 | // TranslationUnit.hpp -- |
---|
| 8 | // |
---|
| 9 | // Author : Andrew Beach |
---|
| 10 | // Created On : Tue Jun 11 15:30:00 2019 |
---|
| 11 | // Last Modified By : Andrew Beach |
---|
[39d8950] | 12 | // Last Modified On : Tue Mar 11 11:19:00 2022 |
---|
| 13 | // Update Count : 1 |
---|
[1be1e5a] | 14 | // |
---|
| 15 | |
---|
| 16 | #pragma once |
---|
| 17 | |
---|
| 18 | #include <map> |
---|
| 19 | #include <vector> |
---|
| 20 | |
---|
| 21 | #include "Fwd.hpp" |
---|
| 22 | |
---|
| 23 | namespace ast { |
---|
| 24 | |
---|
[39d8950] | 25 | class TranslationGlobal { |
---|
[1f7dc61] | 26 | public: |
---|
[39d8950] | 27 | std::map< UniqueId, Decl * > idMap; |
---|
[1be1e5a] | 28 | |
---|
[39d8950] | 29 | ptr<Type> sizeType; |
---|
| 30 | const FunctionDecl * dereference; |
---|
| 31 | const StructDecl * dtorStruct; |
---|
| 32 | const FunctionDecl * dtorDestroy; |
---|
| 33 | }; |
---|
[1be1e5a] | 34 | |
---|
[39d8950] | 35 | class TranslationUnit { |
---|
| 36 | public: |
---|
| 37 | std::list< ptr< Decl > > decls; |
---|
| 38 | TranslationGlobal global; |
---|
[1be1e5a] | 39 | }; |
---|
| 40 | |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | // Local Variables: // |
---|
| 44 | // tab-width: 4 // |
---|
| 45 | // mode: c++ // |
---|
| 46 | // compile-command: "make install" // |
---|
| 47 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.