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 bc1ab61 was             4aa0858, checked in by Rob Schluntz <rschlunt@…>, 10 years ago | 
        
          | 
allow user defined routines to override autogenerated routines
 | 
        
          | 
              
Property                 mode
 set to                 100644 | 
        
          | File size:
            1.1 KB | 
      
      
| Rev | Line |  | 
|---|
| [b87a5ed] | 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 | // | 
|---|
|  | 7 | // LinkageSpec.h -- | 
|---|
|  | 8 | // | 
|---|
|  | 9 | // Author           : Rodolfo G. Esteves | 
|---|
|  | 10 | // Created On       : Sat May 16 13:24:28 2015 | 
|---|
| [4aa0858] | 11 | // Last Modified By : Rob Schluntz | 
|---|
|  | 12 | // Last Modified On : Tue Aug 18 14:11:55 2015 | 
|---|
|  | 13 | // Update Count     : 5 | 
|---|
| [b87a5ed] | 14 | // | 
|---|
|  | 15 |  | 
|---|
| [51b73452] | 16 | #ifndef LINKAGESPEC_H | 
|---|
|  | 17 | #define LINKAGESPEC_H | 
|---|
|  | 18 |  | 
|---|
|  | 19 | #include <string> | 
|---|
|  | 20 |  | 
|---|
| [3848e0e] | 21 | struct LinkageSpec { | 
|---|
| [b87a5ed] | 22 | enum Type { | 
|---|
|  | 23 | Intrinsic,                                                                              // C built-in defined in prelude | 
|---|
|  | 24 | Cforall,                                                                                // ordinary | 
|---|
|  | 25 | C,                                                                                              // not overloadable, not mangled | 
|---|
|  | 26 | AutoGen,                                                                                // built by translator (struct assignment) | 
|---|
|  | 27 | Compiler                                                                                // gcc internal | 
|---|
|  | 28 | }; | 
|---|
| [51b73452] | 29 |  | 
|---|
| [b87a5ed] | 30 | static Type fromString( const std::string & ); | 
|---|
|  | 31 | static std::string toString( Type ); | 
|---|
| [51b73452] | 32 |  | 
|---|
| [b87a5ed] | 33 | static bool isDecoratable( Type ); | 
|---|
|  | 34 | static bool isGeneratable( Type ); | 
|---|
|  | 35 | static bool isOverloadable( Type ); | 
|---|
| [4aa0858] | 36 | static bool isOverridable( Type ); | 
|---|
| [b87a5ed] | 37 | static bool isBuiltin( Type ); | 
|---|
| [51b73452] | 38 | }; | 
|---|
|  | 39 |  | 
|---|
| [3848e0e] | 40 | #endif // LINKAGESPEC_H | 
|---|
| [b87a5ed] | 41 |  | 
|---|
|  | 42 | // Local Variables: // | 
|---|
|  | 43 | // tab-width: 4 // | 
|---|
|  | 44 | // mode: c++ // | 
|---|
|  | 45 | // compile-command: "make install" // | 
|---|
|  | 46 | // End: // | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.