ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        ctor
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        gc_noraii
        jacob/cs343-translation
        jenkins-sandbox
        memory
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        string
        with_gc
      
      
        
          | 
            Last change
 on this file since 71bd8c6 was             843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago           | 
        
        
          | 
             
licencing: seventh groups of files 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.3 KB
           | 
        
      
      
| Rev | Line |   | 
|---|
| [51587aa] | 1 | //
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
 | 
|---|
 | 3 | //
 | 
|---|
 | 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
 | 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
 | 6 | //
 | 
|---|
| [01aeade] | 7 | // GenPoly.h -- 
 | 
|---|
| [51587aa] | 8 | //
 | 
|---|
 | 9 | // Author           : Richard C. Bilson
 | 
|---|
 | 10 | // Created On       : Mon May 18 07:44:20 2015
 | 
|---|
| [01aeade] | 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
 | 12 | // Last Modified On : Tue May 19 07:38:34 2015
 | 
|---|
 | 13 | // Update Count     : 1
 | 
|---|
| [51587aa] | 14 | //
 | 
|---|
| [51b73452] | 15 | 
 | 
|---|
| [b1a6d6b] | 16 | #ifndef GENPOLY_H
 | 
|---|
 | 17 | #define GENPOLY_H
 | 
|---|
 | 18 | 
 | 
|---|
| [51b73452] | 19 | #include <map>
 | 
|---|
 | 20 | #include <string>
 | 
|---|
 | 21 | #include <iostream>
 | 
|---|
 | 22 | #include "SynTree/Declaration.h"
 | 
|---|
 | 23 | 
 | 
|---|
 | 24 | namespace GenPoly {
 | 
|---|
| [01aeade] | 25 |         typedef std::map< std::string, TypeDecl::Kind > TyVarMap;
 | 
|---|
| [51b73452] | 26 | 
 | 
|---|
| [01aeade] | 27 |         // considerAllTyVars allows ignoring the contents of the TyVarMap parameter, for the situations where
 | 
|---|
 | 28 |         // it is important only that a TypeInstType node exists.
 | 
|---|
| [51b73452] | 29 | 
 | 
|---|
| [01aeade] | 30 |         bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVarr );
 | 
|---|
 | 31 |         bool needsAdapter( FunctionType *adaptee, const TyVarMap &tyVars, bool considerAllTyVars );
 | 
|---|
 | 32 |         bool isPolyFun( FunctionType *fun, const TyVarMap &tyVars );
 | 
|---|
 | 33 |         bool isPolyVal( Type *type, const TyVarMap &tyVars );
 | 
|---|
 | 34 |         bool isPolyVal( Type *type, const TyVarMap &tyVars, bool considerAllTyVars );
 | 
|---|
 | 35 |         void printTyVarMap( std::ostream &os, const TyVarMap &tyVarMap );
 | 
|---|
| [51b73452] | 36 | } // namespace GenPoly
 | 
|---|
| [b1a6d6b] | 37 | 
 | 
|---|
| [01aeade] | 38 | #endif // GENPOLY_H
 | 
|---|
 | 39 | 
 | 
|---|
| [51587aa] | 40 | // Local Variables: //
 | 
|---|
 | 41 | // tab-width: 4 //
 | 
|---|
 | 42 | // mode: c++ //
 | 
|---|
 | 43 | // compile-command: "make install" //
 | 
|---|
 | 44 | // End: //
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.