| 
            Last change
 on this file since 421b242 was             5f225f5, checked in by Andrew Beach <ajbeach@…>, 18 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
           | 
        
      
      
| 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.hpp -- 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 | 
 | 
|---|
| 18 | namespace ast {
 | 
|---|
| 19 |         class Expr;
 | 
|---|
| 20 |         class TranslationUnit;
 | 
|---|
| 21 | }
 | 
|---|
| 22 | 
 | 
|---|
| 23 | namespace GenPoly {
 | 
|---|
| 24 | 
 | 
|---|
| 25 | /// Replaces return type of `T&` with `T*`, along with appropriate address-of and dereference operators.
 | 
|---|
| 26 | void 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.
 | 
|---|
| 29 | bool referencesPermissable();
 | 
|---|
| 30 | 
 | 
|---|
| 31 | /// Applies transformations that allow GCC to accept more complicated lvalue expressions, e.g. &(a, b).
 | 
|---|
| 32 | ast::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.