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 b1a6d6b was
b1a6d6b,
checked in by Rob Schluntz <rschlunt@…>, 9 years ago
|
removed duplicate adapters, switch to c99 for initializer declarations
|
-
Property mode set to
100644
|
File size:
932 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | /* |
---|
| 2 | * This file is part of the Cforall project |
---|
| 3 | * |
---|
| 4 | * $Id: GenPoly.h,v 1.4 2005/08/29 20:14:13 rcbilson Exp $ |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[b1a6d6b] | 8 | #ifndef GENPOLY_H |
---|
| 9 | #define GENPOLY_H |
---|
| 10 | |
---|
[51b7345] | 11 | #include <map> |
---|
| 12 | #include <string> |
---|
| 13 | #include <iostream> |
---|
| 14 | #include "SynTree/Declaration.h" |
---|
| 15 | |
---|
| 16 | namespace GenPoly { |
---|
| 17 | |
---|
| 18 | typedef std::map< std::string, TypeDecl::Kind > TyVarMap; |
---|
| 19 | |
---|
[b1a6d6b] | 20 | // considerAllTyVars allows ignoring the contents of the TyVarMap parameter, for the situations where |
---|
| 21 | // it is important only that a TypeInstType node exists. |
---|
| 22 | |
---|
| 23 | bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr ); |
---|
| 24 | bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVars, bool considerAllTyVars ); |
---|
[51b7345] | 25 | bool isPolyFun( FunctionType *fun, const TyVarMap &tyVars ); |
---|
| 26 | bool isPolyVal( Type *type, const TyVarMap &tyVars ); |
---|
[b1a6d6b] | 27 | bool isPolyVal( Type *type, const TyVarMap &tyVars, bool considerAllTyVars ); |
---|
[51b7345] | 28 | void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap ); |
---|
| 29 | |
---|
| 30 | } // namespace GenPoly |
---|
[b1a6d6b] | 31 | |
---|
| 32 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.