source: src/ControlStruct/Mutate.cc @ 64ac636

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 64ac636 was 906e24d, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

replace results list on Expressions with a single Type field

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[51587aa]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//
[982d63f]7// Mutate.cc --
[51587aa]8//
[843054c2]9// Author           : Rodolfo G. Esteves
[51587aa]10// Created On       : Mon May 18 07:44:20 2015
[4e06c1e]11// Last Modified By : Peter A. Buhr
[8688ce1]12// Last Modified On : Thu Aug  4 11:39:08 2016
13// Update Count     : 9
[51587aa]14//
[a08ba92]15
[51b7345]16#include <algorithm>
17#include <iostream>
18#include <cassert>
19#include <list>
20
21#include "Mutate.h"
22#include "LabelFixer.h"
23#include "MLEMutator.h"
24#include "ForExprMutator.h"
25//#include "ExceptMutator.h"
26
[d3b7937]27#include "Common/utility.h"
[51b7345]28
29#include "SynTree/Visitor.h"
30
31using namespace std;
32
33namespace ControlStruct {
[a08ba92]34        void mutate( std::list< Declaration * > translationUnit ) {
[145f1fc]35                // hoist initialization out of for statements
36                ForExprMutator formut;
[4162aea9]37
[4e06c1e]38                // normalizes label definitions and generates multi-level exit labels
[a08ba92]39                LabelFixer lfix;
[4162aea9]40
[a08ba92]41                //ExceptMutator exc;
42
[145f1fc]43                mutateAll( translationUnit, formut );
[982d63f]44                acceptAll( translationUnit, lfix );
[a08ba92]45                //mutateAll( translationUnit, exc );
46        }
[51b7345]47} // namespace CodeGen
[a08ba92]48
[51587aa]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.