ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 1a5ad8c was
be9288a,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
Fixed errors made by the clean-up tool
|
-
Property mode set to
100644
|
File size:
1.5 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 : Thu Aug 4 11:39:08 2016 |
---|
13 | // Update Count : 9 |
---|
14 | // |
---|
15 | |
---|
16 | #include <iterator> // for back_inserter, inserter |
---|
17 | #include <list> // for list |
---|
18 | |
---|
19 | #include "Common/PassVisitor.h" // for mutateAll |
---|
20 | #include "Common/SemanticError.h" // for SemanticError |
---|
21 | #include "ForExprMutator.h" // for ForExprMutator |
---|
22 | #include "LabelFixer.h" // for LabelFixer |
---|
23 | #include "Mutate.h" |
---|
24 | #include "SynTree/Declaration.h" // for Declaration |
---|
25 | #include "SynTree/Mutator.h" // for mutateAll |
---|
26 | //#include "ExceptMutator.h" |
---|
27 | |
---|
28 | #include "Common/PassVisitor.h" // for PassVisitor |
---|
29 | #include "SynTree/Visitor.h" // for acceptAll |
---|
30 | |
---|
31 | using namespace std; |
---|
32 | |
---|
33 | namespace ControlStruct { |
---|
34 | void mutate( std::list< Declaration * > translationUnit ) { |
---|
35 | // hoist initialization out of for statements |
---|
36 | PassVisitor<ForExprMutator> formut; |
---|
37 | |
---|
38 | // normalizes label definitions and generates multi-level exit labels |
---|
39 | LabelFixer lfix; |
---|
40 | |
---|
41 | //ExceptMutator exc; |
---|
42 | |
---|
43 | mutateAll( translationUnit, formut ); |
---|
44 | acceptAll( translationUnit, lfix ); |
---|
45 | //mutateAll( translationUnit, exc ); |
---|
46 | } |
---|
47 | } // namespace CodeGen |
---|
48 | |
---|
49 | // Local Variables: // |
---|
50 | // tab-width: 4 // |
---|
51 | // mode: c++ // |
---|
52 | // compile-command: "make install" // |
---|
53 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.