Changeset 90152a4 for libcfa/prelude
- Timestamp:
- Aug 27, 2018, 4:40:34 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b7c89aa
- Parents:
- f9feab8 (diff), 305581d (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. - Location:
- libcfa/prelude
- Files:
-
- 4 added
- 10 moved
-
Makefile.am (added)
-
Makefile.in (moved) (moved from src/prelude/Makefile.in ) (14 diffs)
-
bootloader.cf (moved) (moved from src/prelude/bootloader.cf )
-
builtins.c (moved) (moved from src/prelude/builtins.c ) (3 diffs)
-
builtins.def (moved) (moved from src/prelude/builtins.def ) (4 diffs)
-
extras.c (moved) (moved from src/prelude/extras.c )
-
extras.regx (moved) (moved from src/prelude/extras.regx ) (1 diff)
-
prelude-gen.cc (added)
-
prelude.old.cf (moved) (moved from src/prelude/prelude.cf ) (11 diffs)
-
prototypes.awk (moved) (moved from src/prelude/prototypes.awk ) (5 diffs)
-
prototypes.c (moved) (moved from src/prelude/prototypes.c )
-
prototypes.sed (added)
-
sync-builtins.cf (added)
-
sync-builtins.def (moved) (moved from src/prelude/sync-builtins.def )
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/Makefile.in
rf9feab8 r90152a4 90 90 PRE_UNINSTALL = : 91 91 POST_UNINSTALL = : 92 build_triplet = @build@ 93 host_triplet = @host@ 94 subdir = src/prelude 92 subdir = prelude 95 93 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 96 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 94 am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \ 95 $(top_srcdir)/configure.ac 97 96 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 98 97 $(ACLOCAL_M4) 99 98 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 100 99 mkinstalldirs = $(install_sh) -d 101 CONFIG_HEADER = $(top_builddir)/config.h102 100 CONFIG_CLEAN_FILES = 103 101 CONFIG_CLEAN_VPATH_FILES = … … 154 152 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 155 153 ACLOCAL = @ACLOCAL@ 156 ALLOCA = @ALLOCA@157 154 AMTAR = @AMTAR@ 158 155 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ 156 ARCHITECTURE = @ARCHITECTURE@ 157 ARCH_FLAGS = @ARCH_FLAGS@ 159 158 AUTOCONF = @AUTOCONF@ 160 159 AUTOHEADER = @AUTOHEADER@ 161 160 AUTOMAKE = @AUTOMAKE@ 162 161 AWK = @AWK@ 163 BACKEND_CC = @BACKEND_CC@ 164 CC = ${abs_top_srcdir}/src/driver/cfa 162 CC = @CFACC@ 165 163 CCAS = @CCAS@ 166 164 CCASDEPMODE = @CCASDEPMODE@ 167 165 CCASFLAGS = @CCASFLAGS@ 168 166 CCDEPMODE = @CCDEPMODE@ 169 CFA_BACKEND_CC = @CFA_BACKEND_CC@ 167 CFACC = @CFACC@ 168 CFACPP = @CFACPP@ 170 169 CFA_BINDIR = @CFA_BINDIR@ 171 CFA_FLAGS = @CFA_FLAGS@172 170 CFA_INCDIR = @CFA_INCDIR@ 173 171 CFA_LIBDIR = @CFA_LIBDIR@ … … 175 173 CFA_PREFIX = @CFA_PREFIX@ 176 174 CFLAGS = @CFLAGS@ 177 CPP = @CPP@ 175 CONFIGURATION = @CONFIGURATION@ 176 CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@ 177 CONFIG_CFLAGS = @CONFIG_CFLAGS@ 178 178 CPPFLAGS = @CPPFLAGS@ 179 179 CXX = @CXX@ … … 183 183 DEFS = @DEFS@ 184 184 DEPDIR = @DEPDIR@ 185 DRIVER_DIR = @DRIVER_DIR@ 185 186 ECHO_C = @ECHO_C@ 186 187 ECHO_N = @ECHO_N@ 187 188 ECHO_T = @ECHO_T@ 188 EGREP = @EGREP@189 189 EXEEXT = @EXEEXT@ 190 GREP = @GREP@191 190 INSTALL = @INSTALL@ 192 191 INSTALL_DATA = @INSTALL_DATA@ … … 195 194 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 196 195 LDFLAGS = @LDFLAGS@ 197 LEX = @LEX@198 LEXLIB = @LEXLIB@199 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@200 196 LIBOBJS = @LIBOBJS@ 201 197 LIBS = @LIBS@ 202 198 LTLIBOBJS = @LTLIBOBJS@ 203 MACHINE_TYPE = @MACHINE_TYPE@204 MAINT = @MAINT@205 199 MAKEINFO = @MAKEINFO@ 206 200 MKDIR_P = @MKDIR_P@ … … 219 213 STRIP = @STRIP@ 220 214 VERSION = @VERSION@ 221 YACC = @YACC@222 YFLAGS = @YFLAGS@223 215 abs_builddir = @abs_builddir@ 224 216 abs_srcdir = @abs_srcdir@ … … 233 225 am__untar = @am__untar@ 234 226 bindir = @bindir@ 235 build = @build@236 227 build_alias = @build_alias@ 237 build_cpu = @build_cpu@238 build_os = @build_os@239 build_vendor = @build_vendor@240 228 builddir = @builddir@ 241 229 datadir = @datadir@ … … 244 232 dvidir = @dvidir@ 245 233 exec_prefix = @exec_prefix@ 246 host = @host@247 234 host_alias = @host_alias@ 248 host_cpu = @host_cpu@249 host_os = @host_os@250 host_vendor = @host_vendor@251 235 htmldir = @htmldir@ 252 236 includedir = @includedir@ … … 275 259 276 260 # create object files in directory with source files 277 AUTOMAKE_OPTIONS = subdir-objects261 AUTOMAKE_OPTIONS = foreign subdir-objects 278 262 279 263 # put into lib for now 280 264 cfalibdir = ${CFA_LIBDIR} 281 265 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cf bootloader.c 282 noinst_DATA = ../libcfa/libcfa-prelude.c 283 MAINTAINERCLEANFILES = gcc-builtins.c gcc-builtins.cf builtins.cf extras.cf bootloader.c ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 266 noinst_DATA = ../src/prelude.c 267 AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 268 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 269 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cf 270 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 284 271 all: all-am 285 272 286 273 .SUFFIXES: 287 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@$(srcdir)/Makefile.am $(am__configure_deps)274 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 288 275 @for dep in $?; do \ 289 276 case '$(am__configure_deps)' in \ … … 294 281 esac; \ 295 282 done; \ 296 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/prelude/Makefile'; \283 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign prelude/Makefile'; \ 297 284 $(am__cd) $(top_srcdir) && \ 298 $(AUTOMAKE) --foreign src/prelude/Makefile285 $(AUTOMAKE) --foreign prelude/Makefile 299 286 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 300 287 @case '$?' in \ … … 309 296 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 310 297 311 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@$(am__configure_deps)298 $(top_srcdir)/configure: $(am__configure_deps) 312 299 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 313 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@$(am__aclocal_m4_deps)300 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 314 301 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 315 302 $(am__aclocal_m4_deps): … … 399 386 fi 400 387 mostlyclean-generic: 388 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES) 401 389 402 390 clean-generic: … … 501 489 502 490 # create extra forward types/declarations to reduce inclusion of library files 503 extras.cf : extras.regxextras.c504 ${AM_V_GEN} @BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf491 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c 492 ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx > extras.cf 505 493 506 494 # create forward declarations for gcc builtins 507 gcc-builtins.cf : gcc-builtins.c prototypes.sed 508 ${AM_V_GEN}@BACKEND_CC@ -E -P $< | sed -f prototypes.sed > $@ 509 510 gcc-builtins.c : builtins.def prototypes.awk 511 ${AM_V_GEN}@BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ 495 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed 496 ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@ 497 498 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c 499 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > $@ 500 501 prelude.cf : prelude-gen.cc 502 ${AM_V_GEN}${CXX} ${AM_CXXFLAGS} ${CXXFLAGS} ${AM_CFLAGS} ${<} -o prelude-gen -Wall -Wextra -O2 -g -std=c++14 503 @./prelude-gen > $@ 504 @rm ./prelude-gen 512 505 513 506 builtins.def : … … 517 510 # create forward declarations for cfa builtins 518 511 builtins.cf : builtins.c ${CC} 519 ${AM_V_GEN} ${CC} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po512 ${AM_V_GEN}gcc ${AM_CFLAGS} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po 520 513 ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po 521 514 522 515 include $(DEPDIR)/builtins.Po 523 516 524 ../ libcfa/libcfa-prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp525 ${AM_V_GEN} ${abs_top_srcdir}/src/driver/cfa-cpp-l prelude.cf $@ # use src/cfa-cpp as not in lib until after install526 527 bootloader.c : bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp528 ${AM_V_GEN} ${abs_top_srcdir}/src/driver/cfa-cpp -tpmbootloader.cf $@ # use src/cfa-cpp as not in lib until after install517 ../src/prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 518 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -l prelude.cf $@ # use src/cfa-cpp as not in lib until after install 519 520 bootloader.c : ${srcdir}/bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf @CFACPP@ 521 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cf $@ # use src/cfa-cpp as not in lib until after install 529 522 530 523 maintainer-clean-local : -
libcfa/prelude/builtins.c
rf9feab8 r90152a4 9 9 // Author : Peter A. Buhr 10 10 // Created On : Fri Jul 21 16:21:03 2017 11 // Last Modified By : Andrew Beach12 // Last Modified On : Tus Jul 25 15:33:00 201713 // Update Count : 1411 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Aug 5 21:40:38 2018 13 // Update Count : 20 14 14 // 15 15 … … 18 18 typedef unsigned long long __cfaabi_abi_exception_type_t; 19 19 20 #include "../libcfa/virtual.h" 21 #include "../libcfa/exception.h" 20 #include "../src/virtual.h" 21 #include "../src/exception.h" 22 23 void exit( int status, const char fmt[], ... ) __attribute__ (( format(printf, 2, 3), __nothrow__, __leaf__, __noreturn__ )); 24 void abort( const char fmt[], ... ) __attribute__ (( format(printf, 1, 2), __nothrow__, __leaf__, __noreturn__ )); 25 26 // increment/decrement unification 27 28 static inline forall( dtype T | { T& ?+=?( T&, one_t ); } ) 29 T& ++? ( T& x ) { return x += 1; } 30 31 static inline forall( dtype T | sized(T) | { void ?{}( T&, T ); void ^?{}( T& ); T& ?+=?( T&, one_t ); } ) 32 T& ?++ ( T& x ) { T tmp = x; x += 1; return tmp; } 33 34 static inline forall( dtype T | { T& ?-=?( T&, one_t ); } ) 35 T& --? ( T& x ) { return x -= 1; } 36 37 static inline forall( dtype T | sized(T) | { void ?{}( T&, T ); void ^?{}( T& ); T& ?-=?( T&, one_t ); } ) 38 T& ?-- ( T& x ) { T tmp = x; x -= 1; return tmp; } 22 39 23 40 // exponentiation operator implementation … … 41 58 static inline long int ?\?( long int ep, unsigned long int y ) { // disallow negative exponent 42 59 if ( y == 0 ) return 1; // base case 43 if ( ep == 2 ) return ep << (y - 1); // special case, positive shifting only44 typeof( ep ) op = 1; // accumulate odd product45 for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y)60 if ( ep == 2 ) return ep << (y - 1); // special case, positive shifting only 61 typeof( ep ) op = 1; // accumulate odd product 62 for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y) 46 63 if ( (y & 1) == 1 ) op *= ep; // odd ? 47 64 ep *= ep; 48 65 } // for 49 return ep * op;66 return ep * op; 50 67 } // ?\? 51 68 52 // FIX ME, cannot resolve the "T op = 1". 53 54 // static inline forall( otype T | { void ?{}( T * this, one_t ); T ?*?( T, T ); } ) 55 // T ?\?( T ep, unsigned long int y ) { 56 // if ( y == 0 ) return 1; 57 // T op = 1; 58 // for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y) 59 // if ( (y & 1) == 1 ) op = op * ep; // odd ? 60 // ep = ep * ep; 61 // } // for 62 // return ep * op; 63 // } // ?\? 69 static inline forall( otype T | { void ?{}( T & this, one_t ); T ?*?( T, T ); } ) 70 T ?\?( T ep, unsigned long int y ) { 71 if ( y == 0 ) return 1; 72 T op = 1; 73 for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y) 74 if ( (y & 1) == 1 ) op = op * ep; // odd ? 75 ep = ep * ep; 76 } // for 77 return ep * op; 78 } // ?\? 64 79 65 80 // unsigned computation may be faster and larger 66 81 static inline unsigned long int ?\?( unsigned long int ep, unsigned long int y ) { // disallow negative exponent 67 82 if ( y == 0 ) return 1; // base case 68 if ( ep == 2 ) return ep << (y - 1); // special case, positive shifting only69 typeof( ep ) op = 1; // accumulate odd product70 for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y)83 if ( ep == 2 ) return ep << (y - 1); // special case, positive shifting only 84 typeof( ep ) op = 1; // accumulate odd product 85 for ( ; y > 1; y >>= 1 ) { // squaring exponentiation, O(log2 y) 71 86 if ( (y & 1) == 1 ) op *= ep; // odd ? 72 87 ep *= ep; 73 88 } // for 74 return ep * op;89 return ep * op; 75 90 } // ?\? 76 91 77 92 static inline double ?\?( long int x, signed long int y ) { // allow negative exponent 78 if ( y >= 0 ) return (double)(x \ (unsigned long int)y);79 else return 1.0 / x \ (unsigned int)(-y);93 if ( y >= 0 ) return (double)(x \ (unsigned long int)y); 94 else return 1.0 / x \ (unsigned int)(-y); 80 95 } // ?\? 81 96 -
libcfa/prelude/builtins.def
rf9feab8 r90152a4 190 190 191 191 /* Builtin used by implementation of Cilk Plus. Most of these are decomposed 192 by the compiler but a few are implemented in libcilkrts. */ 192 by the compiler but a few are implemented in libcilkrts. */ 193 193 #undef DEF_CILK_BUILTIN_STUB 194 194 #define DEF_CILK_BUILTIN_STUB(ENUM, NAME) \ … … 204 204 205 205 /* Builtin used by the implementation of libsanitizer. These 206 functions are mapped to the actual implementation of the 206 functions are mapped to the actual implementation of the 207 207 libtsan library. */ 208 208 #undef DEF_SANITIZER_BUILTIN … … 217 217 #define DEF_CILKPLUS_BUILTIN(ENUM, NAME, TYPE, ATTRS) \ 218 218 DEF_BUILTIN (ENUM, NAME, BUILT_IN_NORMAL, BT_FN_INT_VAR, BT_LAST, \ 219 false, false, false, ATTRS, false, flag_cilkplus) 219 false, false, false, ATTRS, false, flag_cilkplus) 220 220 221 221 /* Builtin used by the implementation of Pointer Bounds Checker. */ … … 927 927 DEF_GCC_BUILTIN (BUILT_IN_LINE, "LINE", BT_FN_INT, ATTR_NOTHROW_LEAF_LIST) 928 928 929 #if 0 //Ifdefed out because we hard-coded the proper overloadings of the atomic built-ins 929 930 /* Synchronization Primitives. */ 930 931 #include "sync-builtins.def" 931 932 932 #if 0933 933 /* Offloading and Multi Processing builtins. */ 934 934 #include "omp-builtins.def" -
libcfa/prelude/extras.regx
rf9feab8 r90152a4 1 1 typedef.* size_t; 2 2 typedef.* ptrdiff_t; 3 typedef.* __int8_t; 4 typedef.* __int16_t; 5 typedef.* __int32_t; 6 typedef.* __int64_t; 7 typedef.* __uint8_t; 8 typedef.* __uint16_t; 9 typedef.* __uint32_t; 10 typedef.* __uint64_t; 3 11 typedef.* int8_t; 4 12 typedef.* int16_t; -
libcfa/prelude/prelude.old.cf
rf9feab8 r90152a4 7 7 // Created On : Sat Nov 29 07:23:41 2014 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : S at Oct 28 16:33:09 201710 // Update Count : 10 29 // Last Modified On : Sun Apr 22 13:21:47 2018 10 // Update Count : 103 11 11 // 12 12 … … 39 39 // ------------------------------------------------------------ 40 40 41 _Bool ?++( _Bool & ), ?++( volatile _Bool & );42 _Bool ?--( _Bool & ), ?--( volatile _Bool & );43 41 signed short ?++( signed short & ), ?++( volatile signed short & ); 44 42 signed short ?--( signed short & ), ?--( volatile signed short & ); … … 94 92 // ------------------------------------------------------------ 95 93 96 _Bool ++?( _Bool & ), --?( _Bool & );97 94 signed short ++?( signed short & ), --?( signed short & ); 98 95 signed int ++?( signed int & ), --?( signed int & ); … … 125 122 forall( ftype FT ) FT & *?( FT * ); 126 123 127 _Bool +?( _Bool ), -?( _Bool ) , ~?( _Bool );124 _Bool +?( _Bool ), -?( _Bool ); 128 125 signed int +?( signed int ), -?( signed int ), ~?( signed int ); 129 126 unsigned int +?( unsigned int ), -?( unsigned int ), ~?( unsigned int ); … … 145 142 !?( float _Complex ), !?( double _Complex ), !?( long double _Complex ); 146 143 147 forall ( dtype DT ) int !?( DT * );148 forall ( dtype DT ) int !?( const DT * );149 forall ( dtype DT ) int !?( volatile DT * );150 forall ( dtype DT ) int !?( const volatile DT * );151 forall ( ftype FT ) int !?( FT * );144 forall( dtype DT ) int !?( DT * ); 145 forall( dtype DT ) int !?( const DT * ); 146 forall( dtype DT ) int !?( volatile DT * ); 147 forall( dtype DT ) int !?( const volatile DT * ); 148 forall( ftype FT ) int !?( FT * ); 152 149 153 150 // ------------------------------------------------------------ … … 157 154 // ------------------------------------------------------------ 158 155 159 _Bool ?*?( _Bool, _Bool ), ?/?( _Bool, _Bool ), ?%?( _Bool, _Bool );160 156 signed int ?*?( signed int, signed int ), ?/?( signed int, signed int ), ?%?( signed int, signed int ); 161 157 unsigned int ?*?( unsigned int, unsigned int ), ?/?( unsigned int, unsigned int ), ?%?( unsigned int, unsigned int ); … … 215 211 // ------------------------------------------------------------ 216 212 217 _Bool ?<<?( _Bool, _Bool ), ?>>?( _Bool, _Bool );218 213 signed int ?<<?( signed int, signed int ), ?>>?( signed int, signed int ); 219 214 unsigned int ?<<?( unsigned int, unsigned int ), ?>>?( unsigned int, unsigned int ); … … 467 462 468 463 469 _Bool ?*=?( _Bool &, _Bool ), ?*=?( volatile _Bool &, _Bool );470 464 char ?*=?( char &, char ), ?*=?( volatile char &, char ); 471 465 char signed ?*=?( char signed &, char signed ), ?*=?( volatile char signed &, char signed ); … … 534 528 unsigned long long int ?-=?( unsigned long long int &, unsigned long long int ), ?-=?( volatile unsigned long long int &, unsigned long long int ); 535 529 536 _Bool ?<<=?( _Bool &, _Bool ), ?<<=?( volatile _Bool &, _Bool );537 530 char ?<<=?( char &, char ), ?<<=?( volatile char &, char ); 538 531 char signed ?<<=?( char signed &, char signed ), ?<<=?( volatile char signed &, char signed ); … … 547 540 unsigned long long int ?<<=?( unsigned long long int &, unsigned long long int ), ?<<=?( volatile unsigned long long int &, unsigned long long int ); 548 541 549 _Bool ?>>=?( _Bool &, _Bool ), ?>>=?( volatile _Bool &, _Bool );550 542 char ?>>=?( char &, char ), ?>>=?( volatile char &, char ); 551 543 char signed ?>>=?( char signed &, char signed ), ?>>=?( volatile char signed &, char signed ); … … 736 728 forall( dtype DT ) void ?{}( volatile DT * &, DT * ); 737 729 forall( dtype DT ) void ?{}( volatile DT * &, volatile DT * ); 738 739 730 forall( dtype DT ) void ?{}( const volatile DT * &, DT * ); 740 731 forall( dtype DT ) void ?{}( const volatile DT * &, const DT * ); -
libcfa/prelude/prototypes.awk
rf9feab8 r90152a4 5 5 # file "LICENCE" distributed with Cforall. 6 6 # 7 # prototypes.awk -- 7 # prototypes.awk -- 8 8 # 9 9 # Author : Peter A. Buhr … … 12 12 # Last Modified On : Tue Jul 5 14:32:52 2016 13 13 # Update Count : 32 14 # 14 # 15 15 16 16 # http://llvm.org/svn/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def … … 83 83 } # BEGIN 84 84 85 /BT_FN/ { 85 /BT_FN/ { 86 86 for (i = 1; i <= NF; i++) { 87 87 if( match($i, "BT_FN") != 0 ) { … … 116 116 117 117 # generate function return type as macro 118 for ( t = 0; t < N; t += 1 ) { # find longest match 118 for ( t = 0; t < N; t += 1 ) { # find longest match 119 119 type = types[t]; 120 120 if ( index( prototype, type ) == 1 ) { # found match … … 150 150 # extras 151 151 printf( "\n#include \"builtins.def\"\n\n" ); 152 printf( "\n#include \"sync-builtins.cf\"\n\n" ); 152 153 printf( "extern const char *__PRETTY_FUNCTION__;\n" ); 153 154 } # END
Note:
See TracChangeset
for help on using the changeset viewer.