]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/brig/brigfrontend/phsa.h
Update copyright years.
[thirdparty/gcc.git] / gcc / brig / brigfrontend / phsa.h
index d224752084220600546d5851911fd603443c5e4f..02b2bd73c80d0ec5c6132aca0f2faf01c9660c95 100644 (file)
@@ -1,5 +1,5 @@
 /* phsa.h -- interfacing between the gcc BRIG FE and the phsa runtime
-   Copyright (C) 2016-2018 Free Software Foundation, Inc.
+   Copyright (C) 2016-2020 Free Software Foundation, Inc.
    Contributed by Pekka Jaaskelainen <pekka.jaaskelainen@parmance.com>
    for General Processor Tech.
 
@@ -58,13 +58,22 @@ typedef struct __attribute__((__packed__))
 
 /* The prefix to use in the ELF section containing descriptor for
    a function.  */
+
 #define PHSA_DESC_SECTION_PREFIX "phsa.desc."
 #define PHSA_HOST_DEF_PTR_PREFIX "__phsa.host_def."
 
 /* The frontend error messages are parsed by the host runtime.  Known
    prefix strings are used to separate the different runtime error
    codes.  */
+
 #define PHSA_ERROR_PREFIX_INCOMPATIBLE_MODULE "Incompatible module: "
 #define PHSA_ERROR_PREFIX_CORRUPTED_MODULE "Corrupted module: "
 
+/* Offsets of attributes in the PHSA context structs.
+   Used by -fphsa-wi-context-opt.  */
+#define PHSA_CONTEXT_OFFS_WI_IDS 0
+#define PHSA_CONTEXT_OFFS_WG_IDS (PHSA_CONTEXT_OFFS_WI_IDS + 3 * 4)
+#define PHSA_CONTEXT_WG_SIZES (PHSA_CONTEXT_OFFS_WG_IDS + 3 * 4)
+#define PHSA_CONTEXT_CURRENT_WG_SIZES (PHSA_CONTEXT_WG_SIZES + 3 * 4)
+
 #endif