source: src/SymTab/FixFunction.h@ bfd4974

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox 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 bfd4974 was 21b7161, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

Convert FixFunction to PassVisitor

  • 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// FixFunction.h --
8//
9// Author : Richard C. Bilson
10// Created On : Sun May 17 17:02:08 2015
11// Last Modified By : Peter A. Buhr
12// Last Modified On : Sat Jul 22 09:45:55 2017
13// Update Count : 4
14//
15
16#pragma once
17
18#include "Common/PassVisitor.h" // for PassVisitor
19#include "SynTree/SynTree.h" // for Types
20
21namespace SymTab {
22 /// Replaces function and array types by equivalent pointer types.
23 class FixFunction : public WithShortCircuiting {
24 typedef Mutator Parent;
25 public:
26 FixFunction();
27
28 void premutate(FunctionDecl *functionDecl);
29 DeclarationWithType* postmutate(FunctionDecl *functionDecl);
30
31 Type * postmutate(ArrayType * arrayType);
32
33 void premutate(VoidType * voidType);
34 void premutate(BasicType * basicType);
35 void premutate(PointerType * pointerType);
36 void premutate(StructInstType * aggregateUseType);
37 void premutate(UnionInstType * aggregateUseType);
38 void premutate(EnumInstType * aggregateUseType);
39 void premutate(TraitInstType * aggregateUseType);
40 void premutate(TypeInstType * aggregateUseType);
41 void premutate(TupleType * tupleType);
42 void premutate(VarArgsType * varArgsType);
43 void premutate(ZeroType * zeroType);
44 void premutate(OneType * oneType);
45
46 bool isVoid;
47 };
48} // namespace SymTab
49
50// Local Variables: //
51// tab-width: 4 //
52// mode: c++ //
53// compile-command: "make install" //
54// End: //
Note: See TracBrowser for help on using the repository browser.