//
// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// Generate.h --
//
// Author           : Richard C. Bilson
// Created On       : Mon May 18 07:44:20 2015
// Last Modified By : Peter A. Buhr
// Last Modified On : Mon May 18 23:39:51 2015
// Update Count     : 1
//

#ifndef GENERATE_H
#define GENERATE_H

#include <list>
#include <iostream>

#include "SynTree/SynTree.h"

namespace CodeGen {
	/// Generates code. doIntrinsics determines if intrinsic functions are printed, pretty formats output nicely (e.g., uses unmangled names, etc.), generateC is true when the output must consist only of C code (allows some assertions, etc.)
	void generate( std::list< Declaration* > translationUnit, std::ostream &os, bool doIntrinsics, bool pretty, bool generateC = false , bool lineMarks = false );

	/// Generate code for a single node -- helpful for debugging in gdb
	void generate( BaseSyntaxNode * node, std::ostream & os );
} // namespace CodeGen

#endif // GENERATE_H

// Local Variables: //
// tab-width: 4 //
// mode: c++ //
// compile-command: "make install" //
// End: //
