source: src/CodeGen/Options.h@ 5157ba7

ADT arm-eh ast-experimental cleanup-dtors enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 5157ba7 was 42a36d9, checked in by Andrew Beach <ajbeach@…>, 6 years ago

Created CodeGen::Options which hold some flags for code generation.

  • Property mode set to 100644
File size: 872 bytes
RevLine 
[42a36d9]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// Options.h --
8//
9// Author : Andrew Beach
10// Created On : Tue Apr 30 11:36:00 2019
11// Last Modified By : Andrew Beach
12// Last Modified On : Wed May 1 09:51:00 2019
13// Update Count : 0
14//
15
16#pragma once
17
18namespace CodeGen {
19 struct Options {
20 // External Options: Same thoughout a pass.
21 bool pretty;
22 bool genC;
23 bool lineMarks;
24 bool printExprTypes;
25
26 Options(bool pretty, bool genC, bool lineMarks, bool printExprTypes) :
27 pretty(pretty), genC(genC), lineMarks(lineMarks), printExprTypes(printExprTypes)
28 {}
29 };
30} // namespace CodeGen
31
32// Local Variables: //
33// tab-width: 4 //
34// mode: c++ //
35// compile-command: "make install" //
36// End: //
Note: See TracBrowser for help on using the repository browser.