source: src/GenPoly/Lvalue.h @ ed79428

Last change on this file since ed79428 was b8b5535, checked in by Andrew Beach <ajbeach@…>, 12 months ago

Major round of clean-up in the GenPoly? directory.

  • Property mode set to 100644
File size: 1.2 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// Lvalue.h -- Clean up lvalues and remove references.
8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
11// Last Modified By : Andrew Beach
12// Last Modified On : Thu Sep 15 14:13:00 2022
13// Update Count     : 3
14//
15
16#pragma once
17
18namespace ast {
19        class Expr;
20        class TranslationUnit;
21}
22
23namespace GenPoly {
24
25/// Replaces return type of `T&` with `T*`, along with appropriate address-of and dereference operators.
26void convertLvalue( ast::TranslationUnit & translationUnit );
27
28/// Returns true until reference types have been eliminated from the source code. After this point, reference types should not be added to the AST.
29bool referencesPermissable();
30
31/// Applies transformations that allow GCC to accept more complicated lvalue expressions, e.g. &(a, b).
32ast::Expr const * generalizedLvalue( ast::Expr const * expr );
33
34} // namespace GenPoly
35
36// Local Variables: //
37// tab-width: 4 //
38// mode: c++ //
39// compile-command: "make install" //
40// End: //
Note: See TracBrowser for help on using the repository browser.