Last change
on this file since 09bdf2d was
b6923b17,
checked in by Andrew Beach <ajbeach@…>, 4 months ago
|
Fixed goto labelled loop. I had to reorder some passes. Updated control declaration hoisting (including comments and correcting update count). Added test, moved more tests into ctrl-flow.
|
-
Property mode set to
100644
|
File size:
917 bytes
|
Rev | Line | |
---|
[a488783] | 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 | // HoistControlDecls.hpp -- Desugar Cforall control structures. |
---|
| 8 | // |
---|
| 9 | // Author : Andrew Beach |
---|
| 10 | // Created On : Fri Dec 3 15:31:00 2021 |
---|
[b6923b17] | 11 | // Last Modified By : Andrew Beach |
---|
| 12 | // Last Modified On : Wed Jul 24 12:04:00 2024 |
---|
[45040b61] | 13 | // Update Count : 3 |
---|
[a488783] | 14 | // |
---|
| 15 | |
---|
| 16 | #pragma once |
---|
| 17 | |
---|
| 18 | namespace ast { |
---|
[45040b61] | 19 | class TranslationUnit; |
---|
[a488783] | 20 | } |
---|
| 21 | |
---|
| 22 | namespace ControlStruct { |
---|
[b6923b17] | 23 | |
---|
[11df881] | 24 | /// Hoist declarations out of control flow statements into compound statement. |
---|
[b6923b17] | 25 | /// Must happen before auto-gen routines are added and after loop control |
---|
| 26 | /// flow is resolved. |
---|
[a488783] | 27 | void hoistControlDecls( ast::TranslationUnit & translationUnit ); |
---|
[b6923b17] | 28 | |
---|
[a488783] | 29 | } // namespace ControlStruct |
---|
| 30 | |
---|
| 31 | // Local Variables: // |
---|
| 32 | // tab-width: 4 // |
---|
| 33 | // mode: c++ // |
---|
| 34 | // compile-command: "make install" // |
---|
| 35 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.