ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since b72d4ed was
fa4805f,
checked in by Andrew Beach <ajbeach@…>, 7 years ago
|
The builtins.cf now includes exception handling functions.
|
-
Property mode set to
100644
|
File size:
1.2 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 |
---|
[fa4805f] | 11 | // Last Modified By : Andrew Beach |
---|
| 12 | // Last Modified On : Wed Jun 28 11:50:00 2017 |
---|
| 13 | // Update Count : 12 |
---|
[b87a5ed] | 14 | // |
---|
| 15 | |
---|
[51b7345] | 16 | #ifndef LINKAGESPEC_H |
---|
| 17 | #define LINKAGESPEC_H |
---|
| 18 | |
---|
| 19 | #include <string> |
---|
| 20 | |
---|
[3848e0e] | 21 | struct LinkageSpec { |
---|
[8b7ee09] | 22 | enum Spec { |
---|
[b87a5ed] | 23 | Intrinsic, // C built-in defined in prelude |
---|
| 24 | Cforall, // ordinary |
---|
| 25 | C, // not overloadable, not mangled |
---|
| 26 | AutoGen, // built by translator (struct assignment) |
---|
[3b8e52c] | 27 | Compiler, // gcc internal |
---|
[fa4805f] | 28 | Builtin, // mangled builtins |
---|
| 29 | BuiltinC, // non-mangled builtins |
---|
[8b7ee09] | 30 | NoOfSpecs |
---|
[b87a5ed] | 31 | }; |
---|
[51b7345] | 32 | |
---|
[faddbd8] | 33 | static Spec linkageCheck( const std::string * ); |
---|
| 34 | static std::string linkageName( Spec ); |
---|
[51b7345] | 35 | |
---|
[fa4805f] | 36 | static bool isMangled( Spec ); |
---|
[8b7ee09] | 37 | static bool isGeneratable( Spec ); |
---|
| 38 | static bool isOverridable( Spec ); |
---|
| 39 | static bool isBuiltin( Spec ); |
---|
[51b7345] | 40 | }; |
---|
| 41 | |
---|
[3848e0e] | 42 | #endif // LINKAGESPEC_H |
---|
[b87a5ed] | 43 | |
---|
| 44 | // Local Variables: // |
---|
| 45 | // tab-width: 4 // |
---|
| 46 | // mode: c++ // |
---|
| 47 | // compile-command: "make install" // |
---|
| 48 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.