Changeset 3bb195cb for src/GenPoly/GenPoly.h
- Timestamp:
- Aug 8, 2016, 3:44:56 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- ce76eb9
- Parents:
- 752dc70
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
r752dc70 r3bb195cb 31 31 namespace GenPoly { 32 32 typedef ErasableScopedMap< std::string, TypeDecl::Kind > TyVarMap; 33 34 /// A function needs an adapter if it returns a polymorphic value or if any of its35 /// parameters have polymorphic type36 bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr );37 38 /// true iff function has polymorphic return type39 ReferenceToType *isPolyRet( FunctionType *function );40 33 41 34 /// Replaces a TypeInstType by its referrent in the environment, if applicable … … 47 40 /// returns polymorphic type if is polymorphic type in tyVars, NULL otherwise; will look up substitution in env if provided 48 41 Type *isPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 ); 42 43 /// returns dynamic-layout type if is dynamic-layout type in tyVars, NULL otherwise; will look up substitution in env if provided 44 Type *isDynType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env = 0 ); 45 46 /// true iff function has dynamic-layout return type under the given type variable map 47 ReferenceToType *isDynRet( FunctionType *function, const TyVarMap &tyVars ); 48 49 /// true iff function has dynamic-layout return type under the type variable map generated from its forall-parameters 50 ReferenceToType *isDynRet( FunctionType *function ); 51 52 /// A function needs an adapter if it returns a dynamic-layout value or if any of its parameters have dynamic-layout type 53 bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr ); 49 54 50 55 /// returns polymorphic type if is pointer to polymorphic type, NULL otherwise; will look up substitution in env if provided
Note: See TracChangeset
for help on using the changeset viewer.