[PATCH 21/25] GCN Back-end (part 1/2).

Andrew Stubbs ams@codesourcery.com
Wed Sep 5 13:40:00 GMT 2018


This part initially failed to send due to size.

This is the main portion of the GCN back-end, plus the configuration
adjustments needed to build it.

The config.sub patch is here so people can try it, but I'm aware that 
needs to
be committed elsewhere first.

The back-end contains various bits that support OpenACC and OpenMP, but the
middle-end and libgomp patches are missing.  I included them here because
they're harmless and carving up the files seems like unnecessary effort. 
  The
remaining offload support will be posted at a later date.

The gcn-run.c is a separate tool that can run a GCN program on a GPU using
the ROCm drivers and HSA runtime libraries.

2018-09-05  Andrew Stubbs  <ams@codesourcery.com>
>.......    Kwok Cheung Yeung  <kcy@codesourcery.com>
>.......    Julian Brown  <julian@codesourcery.com>
>.......    Tom de Vries  <tom@codesourcery.com>
>.......    Jan Hubicka  <hubicka@ucw.cz>
>.......    Martin Jambor  <mjambor@suse.cz>

>.......* config.sub: Recognize amdgcn*-*-amdhsa.
>.......* configure.ac: Likewise.
>.......* configure: Regenerate.

>.......gcc/
>.......* common/config/gcn/gcn-common.c: New file.
>.......* config.gcc: Add amdgcn*-*-amdhsa configuration.
>.......* config/gcn/constraints.md: New file.
>.......* config/gcn/driver-gcn.c: New file.
>.......* config/gcn/gcn-builtins.def: New file.
>.......* config/gcn/gcn-hsa.h: New file.
>.......* config/gcn/gcn-modes.def: New file.
>.......* config/gcn/gcn-opts.h: New file.
>.......* config/gcn/gcn-passes.def: New file.
>.......* config/gcn/gcn-protos.h: New file.
>.......* config/gcn/gcn-run.c: New file.
>.......* config/gcn/gcn-tree.c: New file.
>.......* config/gcn/gcn-valu.md: New file.
>.......* config/gcn/gcn.c: New file.
>.......* config/gcn/gcn.h: New file.
>.......* config/gcn/gcn.md: New file.
>.......* config/gcn/gcn.opt: New file.
>.......* config/gcn/mkoffload.c: New file.
>.......* config/gcn/offload.h: New file.
>.......* config/gcn/predicates.md: New file.
>.......* config/gcn/t-gcn-hsa: New file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-gcn-port-pt1.patch
Type: text/x-patch
Size: 202361 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180905/9a907bed/attachment.bin>


More information about the Gcc-patches mailing list