source: src/GenPoly/GenPoly.h @ e56cfdb0

aaron-thesisarm-ehcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newstringwith_gc
Last change on this file since e56cfdb0 was e56cfdb0, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

allow nested routines to use type variables in containing scope, fix missing adapters, generalized iostream write

  • 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//
[01aeade]7// GenPoly.h --
[51587aa]8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
[01aeade]11// Last Modified By : Peter A. Buhr
[e56cfdb0]12// Last Modified On : Thu Nov 19 17:24:03 2015
13// Update Count     : 4
[51587aa]14//
[51b7345]15
[b1a6d6b]16#ifndef GENPOLY_H
17#define GENPOLY_H
18
[51b7345]19#include <map>
20#include <string>
21#include <iostream>
22#include "SynTree/Declaration.h"
23
24namespace GenPoly {
[01aeade]25        typedef std::map< std::string, TypeDecl::Kind > TyVarMap;
[51b7345]26
[01aeade]27        bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr );
[e56cfdb0]28        bool isPolyRet( FunctionType *function, std::string &name, const TyVarMap &otherTyVars );
29        bool isPolyRet( FunctionType *function, std::string &name );
30        bool isPolyRet( FunctionType *function, const TyVarMap &otherTyVars );
31//      bool isPolyFun( FunctionType *fun, const TyVarMap &tyVars );
[01aeade]32        bool isPolyVal( Type *type, const TyVarMap &tyVars );
33        void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap );
[51b7345]34} // namespace GenPoly
[b1a6d6b]35
[01aeade]36#endif // GENPOLY_H
37
[51587aa]38// Local Variables: //
39// tab-width: 4 //
40// mode: c++ //
41// compile-command: "make install" //
42// End: //
Note: See TracBrowser for help on using the repository browser.