Brig front-end
authorPekka Jääskeläinen <pekka@parmance.com>
Tue, 24 Jan 2017 12:45:56 +0000 (12:45 +0000)
committerMartin Jambor <jamborm@gcc.gnu.org>
Tue, 24 Jan 2017 12:45:56 +0000 (13:45 +0100)
commit5fd1486ce58297190c2b924e96e716087139a8b5
tree80abae8778b2f25cc8bf5960402f20f16e4e7a8c
parente1e41b6f10c76dbdc8bfd2d4a345dffefd45968f
Brig front-end

2017-01-24  Pekka Jääskeläinen <pekka@parmance.com>
    Martin Jambor  <mjambor@suse.cz>

* Makefile.def (target_modules): Added libhsail-rt.
(languages): Added language brig.
* Makefile.in: Regenerated.
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Added
tgarget-libhsail-rt.  Make brig unsupported on untested architectures.
* configure: Regenerated.

gcc/
* brig-builtins.def: New file.
* builtins.def (DEF_HSAIL_BUILTIN): New macro.
(DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
(DEF_HSAIL_SAT_BUILTIN): Likewise.
(DEF_HSAIL_INTR_BUILTIN): Likewise.
(DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
* builtin-types.def (BT_INT8): New.
(BT_INT16): Likewise.
(BT_UINT8): Likewise.
(BT_UINT16): Likewise.
(BT_FN_ULONG): Likewise.
(BT_FN_UINT_INT): Likewise.
(BT_FN_UINT_ULONG): Likewise.
(BT_FN_UINT_LONG): Likewise.
(BT_FN_UINT_PTR): Likewise.
(BT_FN_ULONG_PTR): Likewise.
(BT_FN_INT8_FLOAT): Likewise.
(BT_FN_INT16_FLOAT): Likewise.
(BT_FN_UINT32_FLOAT): Likewise.
(BT_FN_UINT16_FLOAT): Likewise.
(BT_FN_UINT8_FLOAT): Likewise.
(BT_FN_UINT64_FLOAT): Likewise.
(BT_FN_UINT16_UINT32): Likewise.
(BT_FN_UINT32_UINT16): Likewise.
(BT_FN_UINT16_UINT16_UINT16): Likewise.
(BT_FN_INT_PTR_INT): Likewise.
(BT_FN_UINT_PTR_UINT): Likewise.
(BT_FN_LONG_PTR_LONG): Likewise.
(BT_FN_ULONG_PTR_ULONG): Likewise.
(BT_FN_VOID_UINT64_UINT64): Likewise.
(BT_FN_UINT8_UINT8_UINT8): Likewise.
(BT_FN_INT8_INT8_INT8): Likewise.
(BT_FN_INT16_INT16_INT16): Likewise.
(BT_FN_INT_INT_INT): Likewise.
(BT_FN_UINT_FLOAT_UINT): Likewise.
(BT_FN_FLOAT_UINT_UINT): Likewise.
(BT_FN_ULONG_UINT_UINT): Likewise.
(BT_FN_ULONG_UINT_PTR): Likewise.
(BT_FN_ULONG_ULONG_ULONG): Likewise.
(BT_FN_UINT_UINT_UINT): Likewise.
(BT_FN_VOID_UINT_PTR): Likewise.
(BT_FN_UINT_UINT_PTR: Likewise.
(BT_FN_UINT32_UINT64_PTR): Likewise.
(BT_FN_INT_INT_UINT_UINT): Likewise.
(BT_FN_UINT_UINT_UINT_UINT): Likewise.
(BT_FN_UINT_UINT_UINT_PTR): Likewise.
(BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
(BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
(BT_FN_LONG_LONG_UINT_UINT): Likewise.
(BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
(BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
(BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
(BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
(BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
(BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
* doc/frontends.texi: List BRIG FE.
* doc/install.texi (Testing): Add BRIG tesring requirements.
* doc/invoke.texi (Overall Options): Mention BRIG.
* doc/standards.texi (Standards): Doucment BRIG HSA version.

gcc/brig/

* Make-lang.in: New file.
* brig-builtins.h: Likewise.
* brig-c.h: Likewise.
* brig-lang.c: Likewise.
* brigspec.c: Likewise.
* config-lang.in: Likewise.
* lang-specs.h: Likewise.
* lang.opt: Likewise.
* brigfrontend/brig-arg-block-handler.cc: Likewise.
* brigfrontend/brig-atomic-inst-handler.cc: Likewise.
* brigfrontend/brig-basic-inst-handler.cc: Likewise.
* brigfrontend/brig-branch-inst-handler.cc: Likewise.
* brigfrontend/brig-cmp-inst-handler.cc: Likewise.
* brigfrontend/brig-code-entry-handler.cc: Likewise.
* brigfrontend/brig-code-entry-handler.h: Likewise.
* brigfrontend/brig-comment-handler.cc: Likewise.
* brigfrontend/brig-control-handler.cc: Likewise.
* brigfrontend/brig-copy-move-inst-handler.cc: Likewise.
* brigfrontend/brig-cvt-inst-handler.cc: Likewise.
* brigfrontend/brig-fbarrier-handler.cc: Likewise.
* brigfrontend/brig-function-handler.cc: Likewise.
* brigfrontend/brig-function.cc: Likewise.
* brigfrontend/brig-function.h: Likewise.
* brigfrontend/brig-inst-mod-handler.cc: Likewise.
* brigfrontend/brig-label-handler.cc: Likewise.
* brigfrontend/brig-lane-inst-handler.cc: Likewise.
* brigfrontend/brig-machine.c: Likewise.
* brigfrontend/brig-machine.h: Likewise.
* brigfrontend/brig-mem-inst-handler.cc: Likewise.
* brigfrontend/brig-module-handler.cc: Likewise.
* brigfrontend/brig-queue-inst-handler.cc: Likewise.
* brigfrontend/brig-seg-inst-handler.cc: Likewise.
* brigfrontend/brig-signal-inst-handler.cc: Likewise.
* brigfrontend/brig-to-generic.cc: Likewise.
* brigfrontend/brig-to-generic.h: Likewise.
* brigfrontend/brig-util.cc: Likewise.
* brigfrontend/brig-util.h: Likewise.
* brigfrontend/brig-variable-handler.cc: Likewise.
* brigfrontend/phsa.h: Likewise.

gcc/testsuite/

* lib/brig-dg.exp: New file.
* lib/brig.exp: Likewise.
* brig.dg/README: Likewise.
* brig.dg/dg.exp: Likewise.
* brig.dg/test/gimple/alloca.hsail: Likewise.
* brig.dg/test/gimple/atomics.hsail: Likewise.
* brig.dg/test/gimple/branches.hsail: Likewise.
* brig.dg/test/gimple/fbarrier.hsail: Likewise.
* brig.dg/test/gimple/function_calls.hsail: Likewise.
* brig.dg/test/gimple/kernarg.hsail: Likewise.
* brig.dg/test/gimple/mem.hsail: Likewise.
* brig.dg/test/gimple/mulhi.hsail: Likewise.
* brig.dg/test/gimple/packed.hsail: Likewise.
* brig.dg/test/gimple/smoke_test.hsail: Likewise.
* brig.dg/test/gimple/variables.hsail: Likewise.
* brig.dg/test/gimple/vector.hsail: Likewise.

include/

* hsa.h: Moved here from libgomp/plugin/hsa.h.

libgomp/

* plugin/hsa.h: Moved to top level include.
* plugin/plugin-hsa.c: Chanfgd include of hsa.h accordingly.

libhsail-rt/

* Makefile.am: New file.
* target-config.h.in: Likewise.
* configure.ac: Likewise.
* configure: Likewise.
* config.h.in: Likewise.
* aclocal.m4: Likewise.
* README: Likewise.
* Makefile.in: Likewise.
* include/internal/fibers.h: Likewise.
* include/internal/phsa-queue-interface.h: Likewise.
* include/internal/phsa-rt.h: Likewise.
* include/internal/workitems.h: Likewise.
* rt/arithmetic.c: Likewise.
* rt/atomics.c: Likewise.
* rt/bitstring.c: Likewise.
* rt/fbarrier.c: Likewise.
* rt/fibers.c: Likewise.
* rt/fp16.c: Likewise.
* rt/misc.c: Likewise.
* rt/multimedia.c: Likewise.
* rt/queue.c: Likewise.
* rt/sat_arithmetic.c: Likewise.
* rt/segment.c: Likewise.
* rt/workitems.c: Likewise.

Co-Authored-By: Martin Jambor <mjambor@suse.cz>
From-SVN: r244867
100 files changed:
ChangeLog
Makefile.def
Makefile.in
configure
configure.ac
gcc/ChangeLog
gcc/brig-builtins.def [new file with mode: 0644]
gcc/brig/ChangeLog [new file with mode: 0644]
gcc/brig/Make-lang.in [new file with mode: 0644]
gcc/brig/brig-builtins.h [new file with mode: 0644]
gcc/brig/brig-c.h [new file with mode: 0644]
gcc/brig/brig-lang.c [new file with mode: 0644]
gcc/brig/brigfrontend/brig-arg-block-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-atomic-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-basic-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-branch-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-cmp-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-code-entry-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-code-entry-handler.h [new file with mode: 0644]
gcc/brig/brigfrontend/brig-comment-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-control-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-copy-move-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-cvt-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-fbarrier-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-function-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-function.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-function.h [new file with mode: 0644]
gcc/brig/brigfrontend/brig-inst-mod-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-label-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-lane-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-machine.c [new file with mode: 0644]
gcc/brig/brigfrontend/brig-machine.h [new file with mode: 0644]
gcc/brig/brigfrontend/brig-mem-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-module-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-queue-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-seg-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-signal-inst-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-to-generic.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-to-generic.h [new file with mode: 0644]
gcc/brig/brigfrontend/brig-util.cc [new file with mode: 0644]
gcc/brig/brigfrontend/brig-util.h [new file with mode: 0644]
gcc/brig/brigfrontend/brig-variable-handler.cc [new file with mode: 0644]
gcc/brig/brigfrontend/phsa.h [new file with mode: 0644]
gcc/brig/brigspec.c [new file with mode: 0644]
gcc/brig/config-lang.in [new file with mode: 0644]
gcc/brig/lang-specs.h [new file with mode: 0644]
gcc/brig/lang.opt [new file with mode: 0644]
gcc/builtin-types.def
gcc/builtins.def
gcc/doc/frontends.texi
gcc/doc/install.texi
gcc/doc/invoke.texi
gcc/doc/standards.texi
gcc/testsuite/ChangeLog
gcc/testsuite/brig.dg/README [new file with mode: 0644]
gcc/testsuite/brig.dg/dg.exp [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/alloca.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/atomics.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/branches.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/fbarrier.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/function_calls.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/kernarg.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/mem.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/mulhi.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/packed.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/smoke_test.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/variables.hsail [new file with mode: 0644]
gcc/testsuite/brig.dg/test/gimple/vector.hsail [new file with mode: 0644]
gcc/testsuite/lib/brig-dg.exp [new file with mode: 0644]
gcc/testsuite/lib/brig.exp [new file with mode: 0644]
include/ChangeLog
include/hsa.h [new file with mode: 0644]
libgomp/ChangeLog
libgomp/plugin/hsa.h [deleted file]
libgomp/plugin/plugin-hsa.c
libhsail-rt/ChangeLog [new file with mode: 0644]
libhsail-rt/Makefile.am [new file with mode: 0644]
libhsail-rt/Makefile.in [new file with mode: 0644]
libhsail-rt/README [new file with mode: 0644]
libhsail-rt/aclocal.m4 [new file with mode: 0644]
libhsail-rt/config.h.in [new file with mode: 0644]
libhsail-rt/configure [new file with mode: 0644]
libhsail-rt/configure.ac [new file with mode: 0644]
libhsail-rt/include/internal/fibers.h [new file with mode: 0644]
libhsail-rt/include/internal/phsa-queue-interface.h [new file with mode: 0644]
libhsail-rt/include/internal/phsa-rt.h [new file with mode: 0644]
libhsail-rt/include/internal/workitems.h [new file with mode: 0644]
libhsail-rt/rt/arithmetic.c [new file with mode: 0644]
libhsail-rt/rt/atomics.c [new file with mode: 0644]
libhsail-rt/rt/bitstring.c [new file with mode: 0644]
libhsail-rt/rt/fbarrier.c [new file with mode: 0644]
libhsail-rt/rt/fibers.c [new file with mode: 0644]
libhsail-rt/rt/fp16.c [new file with mode: 0644]
libhsail-rt/rt/misc.c [new file with mode: 0644]
libhsail-rt/rt/multimedia.c [new file with mode: 0644]
libhsail-rt/rt/queue.c [new file with mode: 0644]
libhsail-rt/rt/sat_arithmetic.c [new file with mode: 0644]
libhsail-rt/rt/segment.c [new file with mode: 0644]
libhsail-rt/rt/workitems.c [new file with mode: 0644]
libhsail-rt/target-config.h.in [new file with mode: 0644]