source: src/GenPoly/GenPoly.h @ b81096f

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since b81096f was bdf1954, checked in by Rob Schluntz <rschlunt@…>, 9 years ago

removed polyret adapter name mangling for more general poly/mono suffix

  • Property mode set to 100644
File size: 1.3 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// GenPoly.h --
8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
11// Last Modified By : Rob Schluntz
12// Last Modified On : Tue Nov 24 15:24:38 2015
13// Update Count     : 6
14//
15
16#ifndef GENPOLY_H
17#define GENPOLY_H
18
19#include <map>
20#include <string>
21#include <iostream>
22#include "SynTree/Declaration.h"
23
24namespace GenPoly {
25        typedef std::map< std::string, TypeDecl::Kind > TyVarMap;
26
27        bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr );
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 );
32        bool isPolyVal( Type *type, const TyVarMap &tyVars );
33
34  // true if type variable or any number of pointers to type variable
35  bool isPolyObj( Type *type, const TyVarMap &tyVars );
36        void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap );
37} // namespace GenPoly
38
39#endif // GENPOLY_H
40
41// Local Variables: //
42// tab-width: 4 //
43// mode: c++ //
44// compile-command: "make install" //
45// End: //
Note: See TracBrowser for help on using the repository browser.