ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
ctor
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
Last change
on this file since 32a2a99 was 2794fff, checked in by Rob Schluntz <rschlunt@…>, 10 years ago |
started adding some of the basic code for constructors and destructors
|
-
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
|
---|
[2794fff] | 11 | // Last Modified By : Rob Schluntz
|
---|
| 12 | // Last Modified On : Wed Jun 24 16:17:57 2015
|
---|
| 13 | // Update Count : 5
|
---|
[51587aa] | 14 | //
|
---|
| 15 |
|
---|
| 16 | #ifndef _OPERATORTABLE_H
|
---|
| 17 | #define _OPERATORTABLE_H
|
---|
[51b73452] | 18 |
|
---|
| 19 | #include <string>
|
---|
| 20 |
|
---|
| 21 | namespace CodeGen {
|
---|
[51587aa] | 22 | enum OperatorType {
|
---|
| 23 | OT_INDEX,
|
---|
[2794fff] | 24 | OT_CTOR,
|
---|
| 25 | OT_DTOR,
|
---|
[51587aa] | 26 | OT_CALL,
|
---|
| 27 | OT_PREFIX,
|
---|
| 28 | OT_POSTFIX,
|
---|
| 29 | OT_INFIX,
|
---|
| 30 | OT_PREFIXASSIGN,
|
---|
| 31 | OT_POSTFIXASSIGN,
|
---|
| 32 | OT_INFIXASSIGN,
|
---|
[de62360d] | 33 | OT_LABELADDRESS,
|
---|
[51587aa] | 34 | OT_CONSTANT
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 | struct OperatorInfo {
|
---|
| 38 | std::string inputName;
|
---|
| 39 | std::string symbol;
|
---|
| 40 | std::string outputName;
|
---|
| 41 | OperatorType type;
|
---|
| 42 | };
|
---|
| 43 |
|
---|
| 44 | bool operatorLookup( std::string funcName, OperatorInfo &info );
|
---|
[51b73452] | 45 | } // namespace CodeGen
|
---|
| 46 |
|
---|
[51587aa] | 47 | #endif // _OPERATORTABLE_H
|
---|
| 48 |
|
---|
| 49 | // Local Variables: //
|
---|
| 50 | // tab-width: 4 //
|
---|
| 51 | // mode: c++ //
|
---|
| 52 | // compile-command: "make install" //
|
---|
| 53 | // End: //
|
---|
Note:
See
TracBrowser
for help on using the repository browser.