source: src/GenPoly/Lvalue.hpp @ 8dc6f84

Last change on this file since 8dc6f84 was 5f225f5, checked in by Andrew Beach <ajbeach@…>, 6 months ago

Perhaps only src/Makefile.am needed to change, but I did a text search to try and be absolutely sure I got everything.

  • 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//
[5f225f5]7// Lvalue.hpp -- Clean up lvalues and remove references.
[51587aa]8//
9// Author           : Richard C. Bilson
10// Created On       : Mon May 18 07:44:20 2015
[7fffb1b]11// Last Modified By : Andrew Beach
12// Last Modified On : Thu Sep 15 14:13:00 2022
13// Update Count     : 3
[51587aa]14//
[51b7345]15
[6b0b624]16#pragma once
[51b7345]17
[7fffb1b]18namespace ast {
19        class Expr;
20        class TranslationUnit;
21}
[51b7345]22
23namespace GenPoly {
[b0440b7]24
[b8b5535]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 );
[51b7345]33
34} // namespace GenPoly
[01aeade]35
[51587aa]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.