Changes in src/GenPoly/GenPoly.h [3606fe4:490fb92e]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
r3606fe4 r490fb92e 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Fri Aug 19 16:03:00 202213 // Update Count : 811 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sat Jul 22 09:22:57 2017 13 // Update Count : 7 14 14 // 15 15 … … 27 27 namespace GenPoly { 28 28 29 // TODO Via some tricks this works for ast::TypeDecl::Data as well.30 29 typedef ErasableScopedMap< std::string, TypeDecl::Data > TyVarMap; 31 32 30 /// Replaces a TypeInstType by its referrent in the environment, if applicable 33 31 Type* replaceTypeInst( Type* type, const TypeSubstitution* env ); … … 43 41 /// returns dynamic-layout type if is dynamic-layout type in tyVars, NULL otherwise; will look up substitution in env if provided 44 42 ReferenceToType *isDynType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 ); 45 const ast::BaseInstType *isDynType( const ast::Type *type, const TyVarMap &tyVars, const ast::TypeSubstitution *typeSubs = 0 );46 43 47 44 /// true iff function has dynamic-layout return type under the given type variable map … … 86 83 /// true iff types are structurally identical, where TypeInstType's match any type. 87 84 bool typesPolyCompatible( Type *aty, Type *bty ); 88 bool typesPolyCompatible( ast::Type const * lhs, ast::Type const * rhs );89 85 90 86 /// true if arg requires boxing given exprTyVars
Note:
See TracChangeset
for help on using the changeset viewer.