Changeset 04cdd9b for src/GenPoly/GenPoly.h
- Timestamp:
- Aug 19, 2016, 2:42:04 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e85a8631
- Parents:
- 03da511 (diff), ac71a86 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.h
r03da511 r04cdd9b 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.