source:
src/ControlStruct/Mutate.cc
@
86c12d65
Last change on this file since 86c12d65 was 60a8062, checked in by , 5 years ago | |
---|---|
|
|
File size: 1.4 KB |
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 | // Mutate.cc -- |
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 : Sun Feb 16 03:22:07 2020 |
13 | // Update Count : 10 |
14 | // |
15 | |
16 | #include <iterator> // for back_inserter, inserter |
17 | #include <list> // for list |
18 | |
19 | #include "Common/PassVisitor.h" // for mutateAll |
20 | #include "ForExprMutator.h" // for ForExprMutator |
21 | #include "LabelFixer.h" // for LabelFixer |
22 | #include "Mutate.h" |
23 | #include "SynTree/Declaration.h" // for Declaration |
24 | #include "SynTree/Mutator.h" // for mutateAll |
25 | |
26 | #include "Common/PassVisitor.h" // for PassVisitor |
27 | #include "SynTree/Visitor.h" // for acceptAll |
28 | |
29 | namespace ControlStruct { |
30 | void fixLabels( std::list< Declaration * > & translationUnit ) { |
31 | PassVisitor<LabelFixer> lfix; |
32 | acceptAll( translationUnit, lfix ); |
33 | } |
34 | |
35 | void hoistControlDecls( std::list< Declaration * > & translationUnit ) { |
36 | PassVisitor<ForExprMutator> formut; |
37 | mutateAll( translationUnit, formut ); |
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.