// // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo // // The contents of this file are covered under the licence agreement in the // file "LICENCE" distributed with Cforall. // // GenPoly.h -- // // Author : Richard C. Bilson // Created On : Mon May 18 07:44:20 2015 // Last Modified By : Rob Schluntz // Last Modified On : Tue Nov 24 15:24:38 2015 // Update Count : 6 // #ifndef GENPOLY_H #define GENPOLY_H #include #include #include #include "SynTree/Declaration.h" namespace GenPoly { typedef std::map< std::string, TypeDecl::Kind > TyVarMap; bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr ); bool isPolyRet( FunctionType *function, std::string &name, const TyVarMap &otherTyVars ); bool isPolyRet( FunctionType *function, std::string &name ); bool isPolyRet( FunctionType *function, const TyVarMap &otherTyVars ); // bool isPolyFun( FunctionType *fun, const TyVarMap &tyVars ); bool isPolyVal( Type *type, const TyVarMap &tyVars ); // true if type variable or any number of pointers to type variable bool isPolyObj( Type *type, const TyVarMap &tyVars ); void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap ); } // namespace GenPoly #endif // GENPOLY_H // Local Variables: // // tab-width: 4 // // mode: c++ // // compile-command: "make install" // // End: //