new-envwith_gc
Last change
on this file since 7e4b44db was
9236060,
checked in by Rob Schluntz <rschlunt@…>, 7 years ago
|
Merge branch 'master' into references
|
-
Property mode set to
100644
|
File size:
1.2 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 | // |
---|
[bff227f] | 7 | // OperatorTable.h -- |
---|
[51587aa] | 8 | // |
---|
| 9 | // Author : Richard C. Bilson |
---|
| 10 | // Created On : Mon May 18 07:44:20 2015 |
---|
[6b0b624] | 11 | // Last Modified By : Peter A. Buhr |
---|
| 12 | // Last Modified On : Fri Jul 21 22:17:11 2017 |
---|
| 13 | // Update Count : 6 |
---|
[51587aa] | 14 | // |
---|
| 15 | |
---|
[6b0b624] | 16 | #pragma once |
---|
[51b7345] | 17 | |
---|
| 18 | #include <string> |
---|
| 19 | |
---|
| 20 | namespace CodeGen { |
---|
[51587aa] | 21 | enum OperatorType { |
---|
| 22 | OT_INDEX, |
---|
[2794fff] | 23 | OT_CTOR, |
---|
| 24 | OT_DTOR, |
---|
[51587aa] | 25 | OT_CALL, |
---|
| 26 | OT_PREFIX, |
---|
| 27 | OT_POSTFIX, |
---|
| 28 | OT_INFIX, |
---|
| 29 | OT_PREFIXASSIGN, |
---|
| 30 | OT_POSTFIXASSIGN, |
---|
| 31 | OT_INFIXASSIGN, |
---|
[de62360d] | 32 | OT_LABELADDRESS, |
---|
[51587aa] | 33 | OT_CONSTANT |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | struct OperatorInfo { |
---|
| 37 | std::string inputName; |
---|
| 38 | std::string symbol; |
---|
| 39 | std::string outputName; |
---|
| 40 | OperatorType type; |
---|
| 41 | }; |
---|
| 42 | |
---|
| 43 | bool operatorLookup( std::string funcName, OperatorInfo &info ); |
---|
[bff227f] | 44 | |
---|
| 45 | bool isConstructor( const std::string & ); |
---|
| 46 | bool isDestructor( const std::string & ); |
---|
| 47 | bool isAssignment( const std::string & ); |
---|
| 48 | bool isCtorDtor( const std::string & ); |
---|
| 49 | bool isCtorDtorAssign( const std::string & ); |
---|
[51b7345] | 50 | } // namespace CodeGen |
---|
| 51 | |
---|
[51587aa] | 52 | // Local Variables: // |
---|
| 53 | // tab-width: 4 // |
---|
| 54 | // mode: c++ // |
---|
| 55 | // compile-command: "make install" // |
---|
| 56 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.