string
Last change
on this file since a772d8ab was
de62360d,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
fix computed goto, fixed -std=, implicit typedefs for enum and aggregates, add _Noreturn _Thread_local
|
-
Property mode set to
100644
|
File size:
1.0 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 | // |
---|
| 7 | // OperatorTable.h -- |
---|
| 8 | // |
---|
| 9 | // Author : Richard C. Bilson |
---|
| 10 | // Created On : Mon May 18 07:44:20 2015 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[de62360d] | 12 | // Last Modified On : Tue Jun 23 16:09:27 2015 |
---|
| 13 | // Update Count : 3 |
---|
[51587aa] | 14 | // |
---|
| 15 | |
---|
| 16 | #ifndef _OPERATORTABLE_H |
---|
| 17 | #define _OPERATORTABLE_H |
---|
[51b7345] | 18 | |
---|
| 19 | #include <string> |
---|
| 20 | |
---|
| 21 | namespace CodeGen { |
---|
[51587aa] | 22 | enum OperatorType { |
---|
| 23 | OT_INDEX, |
---|
| 24 | OT_CALL, |
---|
| 25 | OT_PREFIX, |
---|
| 26 | OT_POSTFIX, |
---|
| 27 | OT_INFIX, |
---|
| 28 | OT_PREFIXASSIGN, |
---|
| 29 | OT_POSTFIXASSIGN, |
---|
| 30 | OT_INFIXASSIGN, |
---|
[de62360d] | 31 | OT_LABELADDRESS, |
---|
[51587aa] | 32 | OT_CONSTANT |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | struct OperatorInfo { |
---|
| 36 | std::string inputName; |
---|
| 37 | std::string symbol; |
---|
| 38 | std::string outputName; |
---|
| 39 | OperatorType type; |
---|
| 40 | }; |
---|
| 41 | |
---|
| 42 | bool operatorLookup( std::string funcName, OperatorInfo &info ); |
---|
[51b7345] | 43 | } // namespace CodeGen |
---|
| 44 | |
---|
[51587aa] | 45 | #endif // _OPERATORTABLE_H |
---|
| 46 | |
---|
| 47 | // Local Variables: // |
---|
| 48 | // tab-width: 4 // |
---|
| 49 | // mode: c++ // |
---|
| 50 | // compile-command: "make install" // |
---|
| 51 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.