ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since f87408e was
ab57786,
checked in by Peter A. Buhr <pabuhr@…>, 8 years ago
|
more refactoring of parser code
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
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 |
---|
11 | // Last Modified By : Peter A. Buhr |
---|
12 | // Last Modified On : Sat Aug 20 19:22:23 2016 |
---|
13 | // Update Count : 8 |
---|
14 | // |
---|
15 | |
---|
16 | #ifndef LINKAGESPEC_H |
---|
17 | #define LINKAGESPEC_H |
---|
18 | |
---|
19 | #include <string> |
---|
20 | |
---|
21 | struct LinkageSpec { |
---|
22 | enum Spec { |
---|
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 | NoOfSpecs |
---|
29 | }; |
---|
30 | |
---|
31 | static Spec fromString( const std::string & ); |
---|
32 | static std::string toString( Spec ); |
---|
33 | |
---|
34 | static bool isDecoratable( Spec ); |
---|
35 | static bool isGeneratable( Spec ); |
---|
36 | static bool isOverridable( Spec ); |
---|
37 | static bool isBuiltin( Spec ); |
---|
38 | }; |
---|
39 | |
---|
40 | #endif // LINKAGESPEC_H |
---|
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.