source: src/CodeGen/OperatorTable.h@ 6d267ca

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors 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 6d267ca was bff227f, checked in by Rob Schluntz <rschlunt@…>, 8 years ago

Refactor operator predicates into OperatorTable.cc

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[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
[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
21namespace 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 );
[bff227f]45
46 bool isConstructor( const std::string & );
47 bool isDestructor( const std::string & );
48 bool isAssignment( const std::string & );
49 bool isCtorDtor( const std::string & );
50 bool isCtorDtorAssign( const std::string & );
[51b73452]51} // namespace CodeGen
52
[51587aa]53#endif // _OPERATORTABLE_H
54
55// Local Variables: //
56// tab-width: 4 //
57// mode: c++ //
58// compile-command: "make install" //
59// End: //
Note: See TracBrowser for help on using the repository browser.