- Timestamp:
- Aug 6, 2018, 4:33:35 PM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 524ed86
- Parents:
- 73abe95
- Location:
- libcfa/src
- Files:
-
- 31 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/Makefile.am
r73abe95 r58b6d1b 67 67 bits/debug.hfa \ 68 68 bits/locks.hfa \ 69 concurrency/invoke.h fa69 concurrency/invoke.h 70 70 71 71 MOSTLYCLEANFILES = prelude.c -
libcfa/src/Makefile.in
r73abe95 r58b6d1b 343 343 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ 344 344 345 #---------------------------------------------------------------------------------------------------------------- 346 345 347 # not all platforms support concurrency, add option do disable it 346 headers = fstream iostream iterator limits rational time stdlib common \ 347 containers/maybe containers/pair containers/result \ 348 containers/vector concurrency/coroutine concurrency/thread \ 349 concurrency/kernel concurrency/monitor concurrency/mutex 350 libobjs = ${headers:=.o} 348 headers = fstream.hfa iostream.hfa iterator.hfa limits.hfa \ 349 rational.hfa time.hfa stdlib.hfa common.hfa \ 350 containers/maybe.hfa containers/pair.hfa containers/result.hfa \ 351 containers/vector.hfa concurrency/coroutine.hfa \ 352 concurrency/thread.hfa concurrency/kernel.hfa \ 353 concurrency/monitor.hfa concurrency/mutex.hfa 354 libobjs = ${headers:.hfa=.o} 351 355 352 356 # not all platforms support concurrency, add option do disable it 353 357 libsrc = prelude.c startup.cfa interpose.cfa bits/debug.cfa assert.cfa \ 354 exception.c virtual.c heap.cfa ${headers: =.cfa} \358 exception.c virtual.c heap.cfa ${headers:.hfa=.cfa} \ 355 359 concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \ 356 360 concurrency/invoke.c concurrency/preemption.cfa … … 359 363 cfa_includedir = $(CFA_INCDIR) 360 364 nobase_cfa_include_HEADERS = \ 361 ${headers} 362 ${stdhdr} 363 math 364 gmp 365 time_t.h 366 bits/align.h 367 bits/containers.h 368 bits/defs.h 369 bits/debug.h 370 bits/locks.h 365 ${headers} \ 366 ${stdhdr} \ 367 math.hfa \ 368 gmp.hfa \ 369 time_t.hfa \ 370 bits/align.hfa \ 371 bits/containers.hfa \ 372 bits/defs.hfa \ 373 bits/debug.hfa \ 374 bits/locks.hfa \ 371 375 concurrency/invoke.h 372 376 373 CLEANFILES = prelude.c377 MOSTLYCLEANFILES = prelude.c 374 378 all: all-am 375 379 … … 670 674 fi 671 675 mostlyclean-generic: 676 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) 672 677 673 678 clean-generic: 674 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)675 679 676 680 distclean-generic: … … 783 787 $(am__mv) $$depbase.Tpo $$depbase.Po 784 788 785 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing 786 # SKULLDUGGERY in order to make sure this isn't called make the rule always fail but also create a rule for headers 787 % : %.c 788 echo "Dummy rule, should never be called" 789 false 790 791 # This rule should always match headers and since it has no prerequisite it will never be called 792 $(addprefix $(srcdir)/,$(headers)): 793 echo "Dummy rule, should never be called" 794 false 795 796 ${libobjs} : ${cfalib_DATA} # add dependency to cfa-cpp so all libraries are rebuilt with new translator 797 789 #---------------------------------------------------------------------------------------------------------------- 790 # add dependency to cfa-cpp so all libraries are rebuilt with new translator 791 ${libobjs} : ${cfalib_DATA} 792 793 #---------------------------------------------------------------------------------------------------------------- 798 794 maintainer-clean-local: 799 795 -rm -rf ${CFA_INCDIR} ${CFA_LIBDIR} -
libcfa/src/bits/signal.hfa
r73abe95 r58b6d1b 22 22 #include <errno.h> 23 23 #define __USE_GNU 24 #include <signal.h fa>24 #include <signal.h> 25 25 #undef __USE_GNU 26 26 #include <stdlib.h> -
libcfa/src/common.cfa
r73abe95 r58b6d1b 1 // -*- Mode: C -*- 2 // 1 // -*- Mode: C -*- 2 // 3 3 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 4 4 // 5 5 // The contents of this file are covered under the licence agreement in the 6 6 // file "LICENCE" distributed with Cforall. 7 // 8 // common.c -- 9 // 7 // 8 // common.c -- 9 // 10 10 // Author : Peter A. Buhr 11 11 // Created On : Thu Jul 12 08:02:29 2018 … … 13 13 // Last Modified On : Thu Jul 12 08:38:47 2018 14 14 // Update Count : 3 15 // 15 // 16 16 17 #include "common "17 #include "common.hfa" 18 18 #include <stdlib.h> // div_t, *div 19 19 -
libcfa/src/concurrency/alarm.hfa
r73abe95 r58b6d1b 21 21 #include <assert.h> 22 22 23 #include "time "23 #include "time.hfa" 24 24 25 25 struct thread_desc; -
libcfa/src/concurrency/coroutine.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "coroutine "16 #include "coroutine.hfa" 17 17 18 18 extern "C" { -
libcfa/src/concurrency/kernel.cfa
r73abe95 r58b6d1b 22 22 #include <fenv.h> 23 23 #include <sys/resource.h> 24 #include <signal.h fa>24 #include <signal.h> 25 25 #include <unistd.h> 26 26 } 27 27 28 28 //CFA Includes 29 #include "time "29 #include "time.hfa" 30 30 #include "kernel_private.hfa" 31 31 #include "preemption.hfa" -
libcfa/src/concurrency/kernel_private.hfa
r73abe95 r58b6d1b 16 16 #pragma once 17 17 18 #include "kernel "19 #include "thread "18 #include "kernel.hfa" 19 #include "thread.hfa" 20 20 21 21 #include "alarm.hfa" -
libcfa/src/concurrency/monitor.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "monitor "16 #include "monitor.hfa" 17 17 18 18 #include <stdlib.hfa> … … 21 21 #include "kernel_private.hfa" 22 22 23 #include "bits/algorithm s.hfa"23 #include "bits/algorithm.hfa" 24 24 25 25 //----------------------------------------------------------------------------- -
libcfa/src/concurrency/monitor.hfa
r73abe95 r58b6d1b 20 20 #include <assert.h> 21 21 #include "invoke.h" 22 #include "stdlib "22 #include "stdlib.hfa" 23 23 24 24 trait is_monitor(dtype T) { -
libcfa/src/concurrency/mutex.cfa
r73abe95 r58b6d1b 16 16 // 17 17 18 #include "mutex "18 #include "mutex.hfa" 19 19 20 20 #include "kernel_private.hfa" -
libcfa/src/concurrency/mutex.hfa
r73abe95 r58b6d1b 20 20 #include <stdbool.h> 21 21 22 #include "bits/algorithm s.hfa"22 #include "bits/algorithm.hfa" 23 23 #include "bits/locks.hfa" 24 24 -
libcfa/src/concurrency/thread.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "thread "16 #include "thread.hfa" 17 17 18 18 #include "kernel_private.hfa" -
libcfa/src/concurrency/thread.hfa
r73abe95 r58b6d1b 19 19 #include "invoke.h" 20 20 21 #include "coroutine "22 #include "kernel "23 #include "monitor "21 #include "coroutine.hfa" 22 #include "kernel.hfa" 23 #include "monitor.hfa" 24 24 25 25 //----------------------------------------------------------------------------- -
libcfa/src/containers/maybe.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include <containers/maybe >16 #include <containers/maybe.hfa> 17 17 #include <assert.h> 18 18 -
libcfa/src/containers/pair.cfa
r73abe95 r58b6d1b 11 11 // 12 12 13 #include <containers/pair >13 #include <containers/pair.hfa> 14 14 15 forall(otype R, otype S 15 forall(otype R, otype S 16 16 | { int ?==?(R, R); int ?<?(R, R); int ?<?(S, S); }) 17 17 int ?<?(pair(R, S) p, pair(R, S) q) { … … 19 19 } 20 20 21 forall(otype R, otype S 21 forall(otype R, otype S 22 22 | { int ?==?(R, R); int ?<?(R, R); int ?<=?(S, S); }) 23 23 int ?<=?(pair(R, S) p, pair(R, S) q) { … … 35 35 } 36 36 37 forall(otype R, otype S 37 forall(otype R, otype S 38 38 | { int ?==?(R, R); int ?>?(R, R); int ?>?(S, S); }) 39 39 int ?>?(pair(R, S) p, pair(R, S) q) { … … 41 41 } 42 42 43 forall(otype R, otype S 43 forall(otype R, otype S 44 44 | { int ?==?(R, R); int ?>?(R, R); int ?>=?(S, S); }) 45 45 int ?>=?(pair(R, S) p, pair(R, S) q) { -
libcfa/src/containers/result.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include <containers/result >16 #include <containers/result.hfa> 17 17 #include <assert.h> 18 18 -
libcfa/src/containers/vector.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include <containers/vector >16 #include <containers/vector.hfa> 17 17 18 18 #include <stdlib.hfa> -
libcfa/src/fstream.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "fstream "16 #include "fstream.hfa" 17 17 18 18 #include <stdio.h> // vfprintf, vfscanf -
libcfa/src/fstream.hfa
r73abe95 r58b6d1b 16 16 #pragma once 17 17 18 #include "iostream "18 #include "iostream.hfa" 19 19 20 20 enum { sepSize = 16 }; -
libcfa/src/heap.cfa
r73abe95 r58b6d1b 26 26 #include "bits/locks.hfa" // __spinlock_t 27 27 #include "startup.hfa" // STARTUP_PRIORITY_MEMORY 28 #include "stdlib " // bsearchl28 #include "stdlib.hfa" // bsearchl 29 29 #include "malloc.h" 30 30 -
libcfa/src/interpose.cfa
r73abe95 r58b6d1b 18 18 #include <unistd.h> // _exit, getpid 19 19 #define __USE_GNU 20 #include <signal.h fa>20 #include <signal.h> 21 21 #undef __USE_GNU 22 22 extern "C" { -
libcfa/src/iostream.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "iostream "16 #include "iostream.hfa" 17 17 18 18 extern "C" { -
libcfa/src/iostream.hfa
r73abe95 r58b6d1b 16 16 #pragma once 17 17 18 #include "iterator "18 #include "iterator.hfa" 19 19 20 20 trait ostream( dtype ostype ) { -
libcfa/src/iterator.cfa
r73abe95 r58b6d1b 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // iterator.c -- 7 // iterator.c -- 8 8 // 9 9 // Author : Richard C. Bilson … … 14 14 // 15 15 16 #include "iterator "16 #include "iterator.hfa" 17 17 18 18 forall( otype iterator_type, otype elt_type | iterator( iterator_type, elt_type ) ) -
libcfa/src/limits.cfa
r73abe95 r58b6d1b 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // limits.c -- 8 // 6 // 7 // limits.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Wed Apr 6 18:06:52 2016 … … 12 12 // Last Modified On : Thu Mar 1 16:22:51 2018 13 13 // Update Count : 74 14 // 14 // 15 15 16 16 #include <limits.h> … … 19 19 #include <math.h> 20 20 #include <complex.h> 21 #include "limits "21 #include "limits.hfa" 22 22 23 23 // Integral Constants -
libcfa/src/math.hfa
r73abe95 r58b6d1b 350 350 //--------------------------------------- 351 351 352 #include "common "352 #include "common.hfa" 353 353 354 354 //--------------------------------------- -
libcfa/src/rational.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "rational "17 #include "fstream "18 #include "stdlib "16 #include "rational.hfa" 17 #include "fstream.hfa" 18 #include "stdlib.hfa" 19 19 20 20 forall( otype RationalImpl | arithmetic( RationalImpl ) ) { -
libcfa/src/rational.hfa
r73abe95 r58b6d1b 18 18 #pragma once 19 19 20 #include "iostream "20 #include "iostream.hfa" 21 21 22 22 trait scalar( otype T ) { -
libcfa/src/stdlib.cfa
r73abe95 r58b6d1b 14 14 // 15 15 16 #include "stdlib "16 #include "stdlib.hfa" 17 17 18 18 //--------------------------------------- -
libcfa/src/stdlib.hfa
r73abe95 r58b6d1b 251 251 //--------------------------------------- 252 252 253 #include "common "253 #include "common.hfa" 254 254 255 255 // Local Variables: // -
libcfa/src/time.cfa
r73abe95 r58b6d1b 1 // 1 // 2 2 // Cforall Version 1.0.0 Copyright (C) 2018 University of Waterloo 3 3 // 4 4 // The contents of this file are covered under the licence agreement in the 5 5 // file "LICENCE" distributed with Cforall. 6 // 7 // time.c -- 8 // 6 // 7 // time.c -- 8 // 9 9 // Author : Peter A. Buhr 10 10 // Created On : Tue Mar 27 13:33:14 2018 … … 12 12 // Last Modified On : Sun May 6 22:26:00 2018 13 13 // Update Count : 37 14 // 14 // 15 15 16 #include "time "17 #include "iostream "16 #include "time.hfa" 17 #include "iostream.hfa" 18 18 #include <stdio.h> // snprintf 19 19 #include <assert.h>
Note: See TracChangeset
for help on using the changeset viewer.