source: src/CodeGen/FixMain.hpp @ 88bc876

Last change on this file since 88bc876 was c92bdcc, checked in by Andrew Beach <ajbeach@…>, 6 months ago

Updated the rest of the names in src/ (except for the generated files).

  • Property mode set to 100644
File size: 972 bytes
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// FixMain.hpp -- Tools to change a Cforall main into a C main.
8//
9// Author           : Thierry Delisle
10// Created On       : Thr Jan 12 14:11:09 2017
11// Last Modified By : Andrew Beach
12// Last Modified On : Fri Oct 29 16:20:00 2021
13// Update Count     : 8
14//
15
16#pragma once
17
18#include <iosfwd>
19
20namespace ast {
21        class FunctionDecl;
22        class TranslationUnit;
23}
24
25namespace CodeGen {
26
27/// Is this function a program main function?
28bool isMain( const ast::FunctionDecl * decl );
29
30/// Adjust the linkage of main functions.
31void fixMainLinkage( ast::TranslationUnit & transUnit, bool replaceMain );
32
33/// Add a wrapper around to run the Cforall main.
34void fixMainInvoke( ast::TranslationUnit & transUnit,
35                std::ostream & os, const char * bootloaderFilename );
36
37} // namespace CodeGen
Note: See TracBrowser for help on using the repository browser.