ADTast-experimental
Last change
on this file since 1756e08 was
3606fe4,
checked in by Andrew Beach <ajbeach@…>, 2 years ago
|
Translated Instantiate Generic to the new AST. This includes various utilities and some assorted clean-up.
|
-
Property mode set to
100644
|
File size:
1.0 KB
|
Rev | Line | |
---|
[ea5daeb] | 1 | // |
---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2016 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 | // InstantiateGeneric.h -- |
---|
| 8 | // |
---|
| 9 | // Author : Aaron B. Moss |
---|
| 10 | // Created On : Thu Aug 04 18:33:00 2016 |
---|
[6b0b624] | 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Sat Jul 22 09:22:42 2017 |
---|
| 13 | // Update Count : 2 |
---|
[ea5daeb] | 14 | // |
---|
| 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[ea5daeb] | 17 | |
---|
[08fc48f] | 18 | #include <list> // for list |
---|
| 19 | |
---|
| 20 | class Declaration; |
---|
[3606fe4] | 21 | namespace ast { |
---|
| 22 | class TranslationUnit; |
---|
| 23 | } |
---|
[ea5daeb] | 24 | |
---|
| 25 | namespace GenPoly { |
---|
[3606fe4] | 26 | /// Replaces all generic types that have static layout with concrete |
---|
| 27 | /// instantiations. Types with concrete values for otype parameters will be |
---|
| 28 | /// template-expanded, while dtype and ftype parameters will be replaced by |
---|
| 29 | /// the appropriate void type. |
---|
| 30 | void instantiateGeneric( std::list< Declaration* > &translationUnit ); |
---|
| 31 | void instantiateGeneric( ast::TranslationUnit & translationUnit ); |
---|
[ea5daeb] | 32 | } // namespace GenPoly |
---|
| 33 | |
---|
| 34 | // Local Variables: // |
---|
| 35 | // tab-width: 4 // |
---|
| 36 | // mode: c++ // |
---|
| 37 | // compile-command: "make install" // |
---|
| 38 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.