Changeset 3351cc0


Ignore:
Timestamp:
Nov 9, 2017, 10:59:04 AM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
3edc2df, ea7d2b0
Parents:
954908d
Message:

Updated benchmark creation for coroutines and better fix for inittweak destructor

Location:
src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • src/InitTweak/InitTweak.cc

    r954908d r3351cc0  
    9898        class InitExpander::ExpanderImpl {
    9999        public:
     100                virtual ~ExpanderImpl() = default;
    100101                virtual std::list< Expression * > next( std::list< Expression * > & indices ) = 0;
    101102                virtual Statement * buildListInit( UntypedExpr * callExpr, std::list< Expression * > & indices ) = 0;
  • src/benchmark/Makefile.am

    r954908d r3351cc0  
    133133## =========================================================================================================
    134134creation$(EXEEXT) :\
    135         creation-pthread.run            \
    136         creation-cfa_coroutine.run      \
    137         creation-cfa_thread.run         \
    138         creation-upp_coroutine.run      \
     135        creation-pthread.run                    \
     136        creation-cfa_coroutine.run              \
     137        creation-cfa_coroutine_eager.run        \
     138        creation-cfa_thread.run                 \
     139        creation-upp_coroutine.run              \
    139140        creation-upp_thread.run
    140141
    141142creation-cfa_coroutine$(EXEEXT):
    142143        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     144
     145creation-cfa_coroutine_eager$(EXEEXT):
     146        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
    143147
    144148creation-cfa_thread$(EXEEXT):
  • src/benchmark/Makefile.in

    r954908d r3351cc0  
    544544
    545545creation$(EXEEXT) :\
    546         creation-pthread.run            \
    547         creation-cfa_coroutine.run      \
    548         creation-cfa_thread.run         \
    549         creation-upp_coroutine.run      \
     546        creation-pthread.run                    \
     547        creation-cfa_coroutine.run              \
     548        creation-cfa_coroutine_eager.run        \
     549        creation-cfa_thread.run                 \
     550        creation-upp_coroutine.run              \
    550551        creation-upp_thread.run
    551552
    552553creation-cfa_coroutine$(EXEEXT):
    553554        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
     555
     556creation-cfa_coroutine_eager$(EXEEXT):
     557        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
    554558
    555559creation-cfa_thread$(EXEEXT):
  • src/benchmark/creation/cfa_cor.c

    r954908d r3351cc0  
    55
    66coroutine MyCoroutine {};
    7 void ?{} (MyCoroutine & this) { prime(this); }
     7void ?{} (MyCoroutine & this) {
     8#ifdef EAGER
     9        prime(this);
     10#endif
     11}
    812void main(MyCoroutine & this) {}
    913
Note: See TracChangeset for help on using the changeset viewer.