Changeset 4eb1db6 for src


Ignore:
Timestamp:
Jun 2, 2015, 2:28:24 PM (10 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
954463b8
Parents:
d939274 (diff), c3a4385 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' into labels

Location:
src
Files:
13 edited
9 moved

Legend:

Unmodified
Added
Removed
  • src/ArgTweak/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:50:11 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117#SRC +=  ArgTweak/Rewriter.cc \
    218#       ArgTweak/Mutate.cc
  • src/CodeGen/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:50:52 2015
     14## Update Count     : 2
     15###############################################################################
     16
     17#SRC +=  ArgTweak/Rewriter.cc \
     18#       ArgTweak/Mutate.cc
     19
    120SRC +=  CodeGen/Generate.cc \
    221        CodeGen/CodeGenerator.cc \
  • src/Common/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:51:23 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += Common/SemanticError.cc \
    218       Common/UniqueName.cc
  • src/ControlStruct/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:51:45 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC +=  ControlStruct/LabelGenerator.cc \
    218        ControlStruct/LabelFixer.cc \
  • src/Designators/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:52:06 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += Designators/Processor.cc
  • src/GenPoly/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:52:30 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += GenPoly/Box.cc \
    218       GenPoly/GenPoly.cc \
  • src/InitTweak/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:52:49 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += InitTweak/InitModel.cc \
    218       InitTweak/InitExpander.cc \
  • src/Makefile.in

    rd939274 r4eb1db6  
    1717
    1818######################## -*- Mode: Makefile-Automake -*- ######################
     19###############################################################################
     20
     21######################### -*- Mode: Makefile-Gmake -*- ########################
     22###############################################################################
     23
     24######################### -*- Mode: Makefile-Gmake -*- ########################
     25###############################################################################
     26
     27#SRC +=  ArgTweak/Rewriter.cc \
     28#       ArgTweak/Mutate.cc
     29
     30######################### -*- Mode: Makefile-Gmake -*- ########################
     31###############################################################################
     32
     33######################### -*- Mode: Makefile-Gmake -*- ########################
     34###############################################################################
     35
     36######################### -*- Mode: Makefile-Gmake -*- ########################
     37###############################################################################
     38
     39######################### -*- Mode: Makefile-Gmake -*- ########################
     40###############################################################################
     41
     42######################### -*- Mode: Makefile-Gmake -*- ########################
     43###############################################################################
     44
     45######################### -*- Mode: Makefile-Gmake -*- ########################
     46###############################################################################
     47
     48######################### -*- Mode: Makefile-Gmake -*- ########################
     49###############################################################################
     50
     51######################### -*- Mode: Makefile-Gmake -*- ########################
     52###############################################################################
     53
     54######################### -*- Mode: Makefile-Gmake -*- ########################
    1955###############################################################################
    2056
  • src/ResolvExpr/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:53:28 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += ResolvExpr/AlternativeFinder.cc \
    218       ResolvExpr/Alternative.cc \
  • src/SymTab/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:53:50 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += SymTab/IdTable.cc \
    218       SymTab/Indexer.cc \
  • src/SynTree/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:54:09 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC += SynTree/Type.cc \
    218       SynTree/VoidType.cc \
  • src/Tuples/module.mk

    rd939274 r4eb1db6  
     1######################### -*- Mode: Makefile-Gmake -*- ########################
     2##
     3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
     4##
     5## The contents of this file are covered under the licence agreement in the
     6## file "LICENCE" distributed with Cforall.
     7##
     8## module.mk --
     9##
     10## Author           : Richard C. Bilson
     11## Created On       : Mon Jun  1 17:49:17 2015
     12## Last Modified By : Peter A. Buhr
     13## Last Modified On : Mon Jun  1 17:54:33 2015
     14## Update Count     : 1
     15###############################################################################
     16
    117SRC +=  Tuples/Mutate.cc \
    218        Tuples/AssignExpand.cc \
  • src/driver/Makefile.in

    rd939274 r4eb1db6  
    3838bin_PROGRAMS = cfa$(EXEEXT)
    3939cc1lib_PROGRAMS = cc1$(EXEEXT)
    40 subdir = driver
     40subdir = src/driver
    4141DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
    4242ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    195195          esac; \
    196196        done; \
    197         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu driver/Makefile'; \
     197        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/driver/Makefile'; \
    198198        $(am__cd) $(top_srcdir) && \
    199           $(AUTOMAKE) --gnu driver/Makefile
     199          $(AUTOMAKE) --gnu src/driver/Makefile
    200200.PRECIOUS: Makefile
    201201Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  • src/examples/sum.c

    rd939274 r4eb1db6  
    1010// Created On       : Wed May 27 17:56:53 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Wed May 27 18:43:46 2015
    13 // Update Count     : 4
     12// Last Modified On : Mon Jun  1 20:46:35 2015
     13// Update Count     : 18
    1414//
    1515
     
    4242
    4343int main() {
    44         const int size = 10, low = 0, High = 10;
    45         int si = 0, ai[10]; // size
    46         int i;
    47         for ( i = low; i < High; i += 1 ) {
    48                 si += i;
    49                 ai[i] = i;
     44        const int low = 5, High = 15, size = High - low;
     45        int si = 0, ai[size];
     46        int v = low;
     47        for ( int i = 0; i < size; i += 1, v += 1 ) {
     48                si += v;
     49                ai[i] = v;
    5050        }
    5151        printf( "sum from %d to %d is %d, check %d\n",
    5252                        low, High, sum( size, ai ), si );
    5353
    54 //      char ci[10];
     54//      char ci[size];
    5555//      char c = sum( size, ci );
    56 //      float fi[10];
     56//      float fi[size];
    5757//      float f = sum( size, fi );
    5858
    59         double sd = 0.0, ad[10];                                                        // size
    60         for ( i = low; i < High; i += 1 ) {
    61                 double d = i / (double)size;
    62                 sd += d;
    63                 ad[i] = d;
     59        double sd = 0.0, ad[size];
     60        double v = low / 10.0;
     61        for ( int i = 0; i < size; i += 1, v += 0.1 ) {
     62                sd += v;
     63                ad[i] = v;
    6464        }
    6565        printf( "sum from %g to %g is %g, check %g\n",
    66                         low / (double)size, High / (double)size, sum( size, ad ), sd );
     66                        low / 10.0, High / 10.0, sum( size, ad ), sd );
    6767}
    6868
  • src/libcfa/Makefile.in

    rd939274 r4eb1db6  
    3737PRE_UNINSTALL = :
    3838POST_UNINSTALL = :
    39 subdir = libcfa
     39subdir = src/libcfa
    4040DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
    4141ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
     
    219219          esac; \
    220220        done; \
    221         echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libcfa/Makefile'; \
     221        echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libcfa/Makefile'; \
    222222        $(am__cd) $(top_srcdir) && \
    223           $(AUTOMAKE) --gnu libcfa/Makefile
     223          $(AUTOMAKE) --gnu src/libcfa/Makefile
    224224.PRECIOUS: Makefile
    225225Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
Note: See TracChangeset for help on using the changeset viewer.