source: src/ResolvExpr/ConversionCost.h@ 274ce8c

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 274ce8c was ea6332d, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Big header cleaning pass - commit 3

  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[a32b204]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//
[ea6332d]7// ConversionCost.h --
[a32b204]8//
9// Author : Richard C. Bilson
10// Created On : Sun May 17 09:37:28 2015
11// Last Modified By : Peter A. Buhr
[6b0b624]12// Last Modified On : Sat Jul 22 09:38:24 2017
13// Update Count : 4
[a32b204]14//
15
[6b0b624]16#pragma once
[51b73452]17
[ea6332d]18#include "Cost.h" // for Cost
19#include "SynTree/Visitor.h" // for Visitor
20#include "SynTree/SynTree.h" // for Visitor Nodes
21
22namespace SymTab {
23class Indexer;
24} // namespace SymTab
[51b73452]25
26namespace ResolvExpr {
[ea6332d]27class TypeEnvironment;
28
[a32b204]29 class ConversionCost : public Visitor {
30 public:
31 ConversionCost( Type *dest, const SymTab::Indexer &indexer, const TypeEnvironment &env );
[ea6332d]32
[a32b204]33 Cost get_cost() const { return cost; }
34
35 virtual void visit(VoidType *voidType);
36 virtual void visit(BasicType *basicType);
37 virtual void visit(PointerType *pointerType);
38 virtual void visit(ArrayType *arrayType);
39 virtual void visit(FunctionType *functionType);
40 virtual void visit(StructInstType *aggregateUseType);
41 virtual void visit(UnionInstType *aggregateUseType);
42 virtual void visit(EnumInstType *aggregateUseType);
[4040425]43 virtual void visit(TraitInstType *aggregateUseType);
[a32b204]44 virtual void visit(TypeInstType *aggregateUseType);
45 virtual void visit(TupleType *tupleType);
[44b7088]46 virtual void visit(VarArgsType *varArgsType);
[89e6ffc]47 virtual void visit(ZeroType *zeroType);
48 virtual void visit(OneType *oneType);
[a32b204]49 protected:
50 Type *dest;
51 const SymTab::Indexer &indexer;
52 Cost cost;
53 const TypeEnvironment &env;
54 };
[51b73452]55} // namespace ResolvExpr
56
[a32b204]57// Local Variables: //
58// tab-width: 4 //
59// mode: c++ //
60// compile-command: "make install" //
61// End: //
Note: See TracBrowser for help on using the repository browser.