ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
memory
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since c0588909 was d3b7937, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago |
building runtime library (first attempt)
|
-
Property mode
set to
100644
|
File size:
1.5 KB
|
Rev | Line | |
---|
[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 | //
|
---|
| 7 | // FunctionChecker.h --
|
---|
| 8 | //
|
---|
[843054c2] | 9 | // Author : Rodolfo G. Esteves
|
---|
[51587aa] | 10 | // Created On : Mon May 18 07:44:20 2015
|
---|
| 11 | // Last Modified By : Peter A. Buhr
|
---|
| 12 | // Last Modified On : Mon May 18 12:00:57 2015
|
---|
| 13 | // Update Count : 2
|
---|
| 14 | //
|
---|
| 15 |
|
---|
[51b73452] | 16 | #ifndef _TUPLE_FUNCHK_H_
|
---|
| 17 | #define _TUPLE_FUNCHK_H_
|
---|
| 18 |
|
---|
| 19 | #include <string>
|
---|
| 20 | #include <list>
|
---|
| 21 | #include <iostream>
|
---|
| 22 |
|
---|
[d3b7937] | 23 | #include "Common/UniqueName.h"
|
---|
[51b73452] | 24 |
|
---|
| 25 | #include "SynTree/SynTree.h"
|
---|
| 26 | #include "SynTree/Mutator.h"
|
---|
| 27 |
|
---|
| 28 | #include "SynTree/Type.h"
|
---|
| 29 | #include "SynTree/Declaration.h"
|
---|
| 30 | #include "SynTree/Expression.h"
|
---|
| 31 | #include "SynTree/Statement.h"
|
---|
| 32 |
|
---|
| 33 | namespace Tuples {
|
---|
[51587aa] | 34 | class FunctionChecker : public Mutator {
|
---|
| 35 | typedef Mutator Parent;
|
---|
| 36 | public:
|
---|
| 37 | FunctionChecker( bool _topLevel = false, UniqueName *_nameGen = 0 );
|
---|
| 38 | ~FunctionChecker();
|
---|
[51b73452] | 39 |
|
---|
[51587aa] | 40 | virtual Expression* mutate(ApplicationExpr *applicationExpr);
|
---|
| 41 | virtual Statement* mutate(ExprStmt *exprStmt);
|
---|
| 42 | private:
|
---|
| 43 | bool topLevel;
|
---|
| 44 | UniqueName *nameGen;
|
---|
| 45 | std::list< ObjectDecl * > temporaries;
|
---|
| 46 | std::list< Expression * > tempExpr;
|
---|
| 47 | };
|
---|
[51b73452] | 48 |
|
---|
[51587aa] | 49 | class TupleDistrib : public Mutator {
|
---|
| 50 | public:
|
---|
| 51 | virtual Expression* mutate(UntypedExpr *utExpr);
|
---|
| 52 | private:
|
---|
| 53 | };
|
---|
[51b73452] | 54 |
|
---|
[51587aa] | 55 | void checkFunctions( std::list< Declaration * > translationUnit );
|
---|
[51b73452] | 56 | } // namespace Tuples
|
---|
| 57 |
|
---|
[51587aa] | 58 | #endif // _TUPLE_FUNCHK_H_
|
---|
[51b73452] | 59 |
|
---|
[51587aa] | 60 | // Local Variables: //
|
---|
| 61 | // tab-width: 4 //
|
---|
| 62 | // mode: c++ //
|
---|
| 63 | // compile-command: "make install" //
|
---|
| 64 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.