source: src/CodeGen/OperatorTable.h @ aaa1a99a

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 aaa1a99a was 2794fff, checked in by Rob Schluntz <rschlunt@…>, 9 years ago

started adding some of the basic code for constructors and destructors

  • Property mode set to 100644
File size: 1.0 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// OperatorTable.h --
8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
11// Last Modified By : Rob Schluntz
12// Last Modified On : Wed Jun 24 16:17:57 2015
13// Update Count     : 5
14//
15
16#ifndef _OPERATORTABLE_H
17#define _OPERATORTABLE_H
18
19#include <string>
20
21namespace CodeGen {
22        enum OperatorType {
23                OT_INDEX,
24                OT_CTOR,
25                OT_DTOR,
26                OT_CALL,
27                OT_PREFIX,
28                OT_POSTFIX,
29                OT_INFIX,
30                OT_PREFIXASSIGN,
31                OT_POSTFIXASSIGN,
32                OT_INFIXASSIGN,
33                OT_LABELADDRESS,
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 );
45} // namespace CodeGen
46
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.