Changes in / [83b52f1:8fc15cf]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/prelude-gen.cc

    r83b52f1 r8fc15cf  
    1 //
     1// 
    22// Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo
    33//
    44// The contents of this file are covered under the licence agreement in the
    55// file "LICENCE" distributed with Cforall.
    6 //
    7 // prelude-gen.cc --
    8 //
     6// 
     7// prelude-gen.cc -- 
     8// 
    99// Author           : Rob Schluntz and Thierry Delisle
    1010// Created On       : Sat Feb 16 08:44:58 2019
     
    1212// Last Modified On : Tue Apr  2 17:18:24 2019
    1313// Update Count     : 37
    14 //
     14// 
    1515
    1616#include <algorithm>
     
    264264                for (auto cvq : qualifiersPair) {
    265265                        for (auto is_vol : { "        ", "volatile" }) {
    266                                 cout << "forall(dtype DT) void  ?{}(" << cvq.first << type << " * " << is_vol << " &, " << cvq.second << "DT *);" << endl;
    267                         }
    268                 }
    269         }
    270         for (auto cvq : qualifiersSingle) {
    271                 for (auto is_vol : { "        ", "volatile" }) {
    272                         cout << "void  ?{}(" << cvq << "void" << " * " << is_vol << " &);" << endl;
    273                 }
    274                 for (auto is_vol : { "        ", "volatile" }) {
    275                         cout << "void ^?{}(" << cvq << "void" << " * " << is_vol << " &);" << endl;
    276                 }
    277         }
    278 
    279         for (auto cvq : qualifiersSingle) {
    280                 for (auto is_vol : { "        ", "volatile" }) {
    281                         cout << "forall(dtype DT) void  ?{}(" << cvq << "  DT" << " * " << is_vol << " &);" << endl;
    282                 }
    283                 for (auto is_vol : { "        ", "volatile" }) {
    284                         cout << "forall(dtype DT) void ^?{}(" << cvq << "  DT" << " * " << is_vol << " &);" << endl;
     266                                cout << "forall(dtype DT) void ?{}(" << cvq.first << type << " * " << is_vol << " &, " << cvq.second << "DT *);" << endl;
     267                        }
     268                }
     269                for (auto cvq : qualifiersSingle) {
     270                        for (auto is_vol : { "        ", "volatile" }) {
     271                                cout << "forall(dtype DT) void ?{}(" << cvq << type << " * " << is_vol << " &);" << endl;
     272                        }
     273                        for (auto is_vol : { "        ", "volatile" }) {
     274                                cout << "forall(dtype DT) void ^?{}(" << cvq << type << " * " << is_vol << " &);" << endl;
     275                        }
    285276                }
    286277        }
     
    297288        cout << endl;
    298289
    299         cout << "forall(ftype FT) void  ?{}( FT *          &, zero_t );" << endl;
     290        cout << "forall(ftype FT) void  ?{}( FT *          &, zero_t ); " << endl;
    300291        cout << "forall(ftype FT) FT *                  ?=?( FT *          &, zero_t );" << endl;
    301292        cout << "forall(ftype FT) FT *                  ?=?( FT * volatile &, zero_t );" << endl;
Note: See TracChangeset for help on using the changeset viewer.