Changeset 90152a4 for libcfa/prelude


Ignore:
Timestamp:
Aug 27, 2018, 4:40:34 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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.
Message:

Merge branch 'master' into cleanup-dtors

Location:
libcfa/prelude
Files:
4 added
10 moved

Legend:

Unmodified
Added
Removed
  • libcfa/prelude/Makefile.in

    rf9feab8 r90152a4  
    9090PRE_UNINSTALL = :
    9191POST_UNINSTALL = :
    92 build_triplet = @build@
    93 host_triplet = @host@
    94 subdir = src/prelude
     92subdir = prelude
    9593ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
    96 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
     94am__aclocal_m4_deps = $(top_srcdir)/../automake/cfa.m4 \
     95        $(top_srcdir)/configure.ac
    9796am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
    9897        $(ACLOCAL_M4)
    9998DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
    10099mkinstalldirs = $(install_sh) -d
    101 CONFIG_HEADER = $(top_builddir)/config.h
    102100CONFIG_CLEAN_FILES =
    103101CONFIG_CLEAN_VPATH_FILES =
     
    154152DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
    155153ACLOCAL = @ACLOCAL@
    156 ALLOCA = @ALLOCA@
    157154AMTAR = @AMTAR@
    158155AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
     156ARCHITECTURE = @ARCHITECTURE@
     157ARCH_FLAGS = @ARCH_FLAGS@
    159158AUTOCONF = @AUTOCONF@
    160159AUTOHEADER = @AUTOHEADER@
    161160AUTOMAKE = @AUTOMAKE@
    162161AWK = @AWK@
    163 BACKEND_CC = @BACKEND_CC@
    164 CC = ${abs_top_srcdir}/src/driver/cfa
     162CC = @CFACC@
    165163CCAS = @CCAS@
    166164CCASDEPMODE = @CCASDEPMODE@
    167165CCASFLAGS = @CCASFLAGS@
    168166CCDEPMODE = @CCDEPMODE@
    169 CFA_BACKEND_CC = @CFA_BACKEND_CC@
     167CFACC = @CFACC@
     168CFACPP = @CFACPP@
    170169CFA_BINDIR = @CFA_BINDIR@
    171 CFA_FLAGS = @CFA_FLAGS@
    172170CFA_INCDIR = @CFA_INCDIR@
    173171CFA_LIBDIR = @CFA_LIBDIR@
     
    175173CFA_PREFIX = @CFA_PREFIX@
    176174CFLAGS = @CFLAGS@
    177 CPP = @CPP@
     175CONFIGURATION = @CONFIGURATION@
     176CONFIG_CFAFLAGS = @CONFIG_CFAFLAGS@
     177CONFIG_CFLAGS = @CONFIG_CFLAGS@
    178178CPPFLAGS = @CPPFLAGS@
    179179CXX = @CXX@
     
    183183DEFS = @DEFS@
    184184DEPDIR = @DEPDIR@
     185DRIVER_DIR = @DRIVER_DIR@
    185186ECHO_C = @ECHO_C@
    186187ECHO_N = @ECHO_N@
    187188ECHO_T = @ECHO_T@
    188 EGREP = @EGREP@
    189189EXEEXT = @EXEEXT@
    190 GREP = @GREP@
    191190INSTALL = @INSTALL@
    192191INSTALL_DATA = @INSTALL_DATA@
     
    195194INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
    196195LDFLAGS = @LDFLAGS@
    197 LEX = @LEX@
    198 LEXLIB = @LEXLIB@
    199 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
    200196LIBOBJS = @LIBOBJS@
    201197LIBS = @LIBS@
    202198LTLIBOBJS = @LTLIBOBJS@
    203 MACHINE_TYPE = @MACHINE_TYPE@
    204 MAINT = @MAINT@
    205199MAKEINFO = @MAKEINFO@
    206200MKDIR_P = @MKDIR_P@
     
    219213STRIP = @STRIP@
    220214VERSION = @VERSION@
    221 YACC = @YACC@
    222 YFLAGS = @YFLAGS@
    223215abs_builddir = @abs_builddir@
    224216abs_srcdir = @abs_srcdir@
     
    233225am__untar = @am__untar@
    234226bindir = @bindir@
    235 build = @build@
    236227build_alias = @build_alias@
    237 build_cpu = @build_cpu@
    238 build_os = @build_os@
    239 build_vendor = @build_vendor@
    240228builddir = @builddir@
    241229datadir = @datadir@
     
    244232dvidir = @dvidir@
    245233exec_prefix = @exec_prefix@
    246 host = @host@
    247234host_alias = @host_alias@
    248 host_cpu = @host_cpu@
    249 host_os = @host_os@
    250 host_vendor = @host_vendor@
    251235htmldir = @htmldir@
    252236includedir = @includedir@
     
    275259
    276260# create object files in directory with source files
    277 AUTOMAKE_OPTIONS = subdir-objects
     261AUTOMAKE_OPTIONS = foreign subdir-objects
    278262
    279263# put into lib for now
    280264cfalibdir = ${CFA_LIBDIR}
    281265cfalib_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}}
     266noinst_DATA = ../src/prelude.c
     267AM_CFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@
     268AM_CFAFLAGS = @CONFIG_CFAFLAGS@
     269MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cf
     270MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}}
    284271all: all-am
    285272
    286273.SUFFIXES:
    287 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
     274$(srcdir)/Makefile.in: $(srcdir)/Makefile.am  $(am__configure_deps)
    288275        @for dep in $?; do \
    289276          case '$(am__configure_deps)' in \
     
    294281          esac; \
    295282        done; \
    296         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/prelude/Makefile'; \
     283        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign prelude/Makefile'; \
    297284        $(am__cd) $(top_srcdir) && \
    298           $(AUTOMAKE) --foreign src/prelude/Makefile
     285          $(AUTOMAKE) --foreign prelude/Makefile
    299286Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
    300287        @case '$?' in \
     
    309296        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    310297
    311 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
     298$(top_srcdir)/configure: $(am__configure_deps)
    312299        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)
    314301        cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
    315302$(am__aclocal_m4_deps):
     
    399386        fi
    400387mostlyclean-generic:
     388        -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
    401389
    402390clean-generic:
     
    501489
    502490# create extra forward types/declarations to reduce inclusion of library files
    503 extras.cf : extras.regx extras.c
    504         ${AM_V_GEN}@BACKEND_CC@ @CFA_FLAGS@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
     491extras.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
    505493
    506494# 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 > $@
     495gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed
     496        ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed > $@
     497
     498gcc-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
     501prelude.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
    512505
    513506builtins.def :
     
    517510# create forward declarations for cfa builtins
    518511builtins.cf : builtins.c ${CC}
    519         ${AM_V_GEN}${CC} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po
     512        ${AM_V_GEN}gcc ${AM_CFLAGS} -E -P ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po
    520513        ${AM_V_at}sed -i 's/builtins.o/builtins.cf/g' $(DEPDIR)/builtins.Po
    521514
    522515include $(DEPDIR)/builtins.Po
    523516
    524 ../libcfa/libcfa-prelude.c : prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
    525         ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -l prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    526 
    527 bootloader.c : bootloader.cf prelude.cf extras.cf gcc-builtins.cf builtins.cf ${abs_top_srcdir}/src/driver/cfa-cpp
    528         ${AM_V_GEN}${abs_top_srcdir}/src/driver/cfa-cpp -tpm bootloader.cf $@  # use src/cfa-cpp as not in lib until after install
     517../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
     520bootloader.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
    529522
    530523maintainer-clean-local :
  • libcfa/prelude/builtins.c

    rf9feab8 r90152a4  
    99// Author           : Peter A. Buhr
    1010// Created On       : Fri Jul 21 16:21:03 2017
    11 // Last Modified By : Andrew Beach
    12 // Last Modified On : Tus Jul 25 15:33:00 2017
    13 // Update Count     : 14
     11// Last Modified By : Peter A. Buhr
     12// Last Modified On : Sun Aug  5 21:40:38 2018
     13// Update Count     : 20
    1414//
    1515
     
    1818typedef unsigned long long __cfaabi_abi_exception_type_t;
    1919
    20 #include "../libcfa/virtual.h"
    21 #include "../libcfa/exception.h"
     20#include "../src/virtual.h"
     21#include "../src/exception.h"
     22
     23void exit( int status, const char fmt[], ... ) __attribute__ (( format(printf, 2, 3), __nothrow__, __leaf__, __noreturn__ ));
     24void abort( const char fmt[], ... ) __attribute__ (( format(printf, 1, 2), __nothrow__, __leaf__, __noreturn__ ));
     25
     26// increment/decrement unification
     27
     28static inline forall( dtype T | { T& ?+=?( T&, one_t ); } )
     29T& ++? ( T& x ) { return x += 1; }
     30
     31static inline forall( dtype T | sized(T) | { void ?{}( T&, T ); void ^?{}( T& ); T& ?+=?( T&, one_t ); } )
     32T& ?++ ( T& x ) { T tmp = x; x += 1; return tmp; }
     33
     34static inline forall( dtype T | { T& ?-=?( T&, one_t ); } )
     35T& --? ( T& x ) { return x -= 1; }
     36
     37static inline forall( dtype T | sized(T) | { void ?{}( T&, T ); void ^?{}( T& ); T& ?-=?( T&, one_t ); } )
     38T& ?-- ( T& x ) { T tmp = x; x -= 1; return tmp; }
    2239
    2340// exponentiation operator implementation
     
    4158static inline long int ?\?( long int ep, unsigned long int y ) { // disallow negative exponent
    4259        if ( y == 0 ) return 1;                                                         // base case
    43     if ( ep == 2 ) return ep << (y - 1);                                // special case, positive shifting only
    44     typeof( ep ) op = 1;                                                                // accumulate odd product
    45     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)
    4663                if ( (y & 1) == 1 ) op *= ep;                                   // odd ?
    4764                ep *= ep;
    4865        } // for
    49     return ep * op;
     66        return ep * op;
    5067} // ?\?
    5168
    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 // } // ?\?
     69static inline forall( otype T | { void ?{}( T & this, one_t ); T ?*?( T, T ); } )
     70T ?\?( 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} // ?\?
    6479
    6580// unsigned computation may be faster and larger
    6681static inline unsigned long int ?\?( unsigned long int ep, unsigned long int y ) { // disallow negative exponent
    6782        if ( y == 0 ) return 1;                                                         // base case
    68     if ( ep == 2 ) return ep << (y - 1);                                // special case, positive shifting only
    69     typeof( ep ) op = 1;                                                                // accumulate odd product
    70     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)
    7186                if ( (y & 1) == 1 ) op *= ep;                                   // odd ?
    7287                ep *= ep;
    7388        } // for
    74     return ep * op;
     89        return ep * op;
    7590} // ?\?
    7691
    7792static 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);
    8095} // ?\?
    8196
  • libcfa/prelude/builtins.def

    rf9feab8 r90152a4  
    190190
    191191/* 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.  */
    193193#undef DEF_CILK_BUILTIN_STUB
    194194#define DEF_CILK_BUILTIN_STUB(ENUM, NAME) \
     
    204204
    205205/* 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
    207207   libtsan library. */
    208208#undef DEF_SANITIZER_BUILTIN
     
    217217#define DEF_CILKPLUS_BUILTIN(ENUM, NAME, TYPE, ATTRS)  \
    218218  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)
    220220
    221221/* Builtin used by the implementation of Pointer Bounds Checker.  */
     
    927927DEF_GCC_BUILTIN (BUILT_IN_LINE, "LINE", BT_FN_INT, ATTR_NOTHROW_LEAF_LIST)
    928928
     929#if 0 //Ifdefed out because we hard-coded the proper overloadings of the atomic built-ins
    929930/* Synchronization Primitives.  */
    930931#include "sync-builtins.def"
    931932
    932 #if 0
    933933/* Offloading and Multi Processing builtins.  */
    934934#include "omp-builtins.def"
  • libcfa/prelude/extras.regx

    rf9feab8 r90152a4  
    11typedef.* size_t;
    22typedef.* ptrdiff_t;
     3typedef.* __int8_t;
     4typedef.* __int16_t;
     5typedef.* __int32_t;
     6typedef.* __int64_t;
     7typedef.* __uint8_t;
     8typedef.* __uint16_t;
     9typedef.* __uint32_t;
     10typedef.* __uint64_t;
    311typedef.* int8_t;
    412typedef.* int16_t;
  • libcfa/prelude/prelude.old.cf

    rf9feab8 r90152a4  
    77// Created On       : Sat Nov 29 07:23:41 2014
    88// Last Modified By : Peter A. Buhr
    9 // Last Modified On : Sat Oct 28 16:33:09 2017
    10 // Update Count     : 102
     9// Last Modified On : Sun Apr 22 13:21:47 2018
     10// Update Count     : 103
    1111//
    1212
     
    3939// ------------------------------------------------------------
    4040
    41 _Bool                   ?++( _Bool & ),                         ?++( volatile _Bool & );
    42 _Bool                   ?--( _Bool & ),                         ?--( volatile _Bool & );
    4341signed short            ?++( signed short & ),                  ?++( volatile signed short & );
    4442signed short            ?--( signed short & ),                  ?--( volatile signed short & );
     
    9492// ------------------------------------------------------------
    9593
    96 _Bool                   ++?( _Bool & ),                         --?( _Bool & );
    9794signed short    ++?( signed short & ),                  --?( signed short & );
    9895signed int              ++?( signed int & ),                    --?( signed int & );
     
    125122forall( ftype FT ) FT &          *?( FT * );
    126123
    127 _Bool                   +?( _Bool ),                    -?( _Bool ),                    ~?( _Bool );
     124_Bool                   +?( _Bool ),                    -?( _Bool );
    128125signed int              +?( signed int ),               -?( signed int ),               ~?( signed int );
    129126unsigned int            +?( unsigned int ),             -?( unsigned int ),             ~?( unsigned int );
     
    145142                !?( float _Complex ),           !?( double _Complex ),          !?( long double _Complex );
    146143
    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 * );
     144forall( dtype DT ) int !?(                DT * );
     145forall( dtype DT ) int !?( const          DT * );
     146forall( dtype DT ) int !?(       volatile DT * );
     147forall( dtype DT ) int !?( const volatile DT * );
     148forall( ftype FT ) int !?( FT * );
    152149
    153150// ------------------------------------------------------------
     
    157154// ------------------------------------------------------------
    158155
    159 _Bool                   ?*?( _Bool, _Bool ),                                    ?/?( _Bool, _Bool ),                            ?%?( _Bool, _Bool );
    160156signed int              ?*?( signed int, signed int ),                          ?/?( signed int, signed int ),                  ?%?( signed int, signed int );
    161157unsigned int            ?*?( unsigned int, unsigned int ),                      ?/?( unsigned int, unsigned int ),              ?%?( unsigned int, unsigned int );
     
    215211// ------------------------------------------------------------
    216212
    217 _Bool                   ?<<?( _Bool, _Bool ),                                   ?>>?( _Bool, _Bool );
    218213signed int              ?<<?( signed int, signed int ),                         ?>>?( signed int, signed int );
    219214unsigned int            ?<<?( unsigned int, unsigned int ),                     ?>>?( unsigned int, unsigned int );
     
    467462
    468463
    469 _Bool                   ?*=?( _Bool &, _Bool ),                                 ?*=?( volatile _Bool &, _Bool );
    470464char                    ?*=?( char &, char ),                                   ?*=?( volatile char &, char );
    471465char signed             ?*=?( char signed &, char signed ),                     ?*=?( volatile char signed &, char signed );
     
    534528unsigned long long int  ?-=?( unsigned long long int &, unsigned long long int ), ?-=?( volatile unsigned long long int &, unsigned long long int );
    535529
    536 _Bool                   ?<<=?( _Bool &, _Bool ),                                ?<<=?( volatile _Bool &, _Bool );
    537530char                    ?<<=?( char &, char ),                                  ?<<=?( volatile char &, char );
    538531char signed             ?<<=?( char signed &, char signed ),                    ?<<=?( volatile char signed &, char signed );
     
    547540unsigned long long int  ?<<=?( unsigned long long int &, unsigned long long int ), ?<<=?( volatile unsigned long long int &, unsigned long long int );
    548541
    549 _Bool                   ?>>=?( _Bool &, _Bool ),                                ?>>=?( volatile _Bool &, _Bool );
    550542char                    ?>>=?( char &, char ),                                  ?>>=?( volatile char &, char );
    551543char signed             ?>>=?( char signed &, char signed ),                    ?>>=?( volatile char signed &, char signed );
     
    736728forall( dtype DT ) void ?{}(       volatile  DT *          &,                   DT * );
    737729forall( dtype DT ) void ?{}(       volatile  DT *          &,       volatile    DT * );
    738 
    739730forall( dtype DT ) void ?{}( const volatile  DT *          &,                   DT * );
    740731forall( dtype DT ) void ?{}( const volatile  DT *          &, const             DT * );
  • libcfa/prelude/prototypes.awk

    rf9feab8 r90152a4  
    55# file "LICENCE" distributed with Cforall.
    66#
    7 # prototypes.awk -- 
     7# prototypes.awk --
    88#
    99# Author           : Peter A. Buhr
     
    1212# Last Modified On : Tue Jul  5 14:32:52 2016
    1313# Update Count     : 32
    14 # 
     14#
    1515
    1616# http://llvm.org/svn/llvm-project/cfe/trunk/include/clang/Basic/Builtins.def
     
    8383} # BEGIN
    8484
    85 /BT_FN/ { 
     85/BT_FN/ {
    8686    for (i = 1; i <= NF; i++) {
    8787      if( match($i, "BT_FN") != 0 ) {
     
    116116
    117117      # 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
    119119        type = types[t];
    120120        if ( index( prototype, type ) == 1 ) {          # found match
     
    150150        # extras
    151151        printf( "\n#include \"builtins.def\"\n\n" );
     152        printf( "\n#include \"sync-builtins.cf\"\n\n" );
    152153        printf( "extern const char *__PRETTY_FUNCTION__;\n" );
    153154} # END
Note: See TracChangeset for help on using the changeset viewer.