diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2006-11-12 20:17:02 +0100 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2006-11-12 19:17:02 +0000 |
commit | 47eb5b329bf8e6ab2e939a4cedf5533d02a6c7f1 (patch) | |
tree | 3dfa782960185e45d610e396ad0016d74f247a11 /gcc/params.h | |
parent | 015e23f4005b00afaf87c90ef67db48b364fe70e (diff) | |
download | gcc-47eb5b329bf8e6ab2e939a4cedf5533d02a6c7f1.zip gcc-47eb5b329bf8e6ab2e939a4cedf5533d02a6c7f1.tar.gz gcc-47eb5b329bf8e6ab2e939a4cedf5533d02a6c7f1.tar.bz2 |
params.c (set_param_value): Initialize the "set" field.
* params.c (set_param_value): Initialize the "set" field.
* params.h (struct param_info): Add "set" field.
(PARAM_SET_P): New macro.
(PREFETCH_LATENCY, SIMULTANEOUS_PREFETCHES, L1_CACHE_SIZE,
L1_CACHE_LINE_SIZE): New macros.
* toplev.c (DEFPARAM): Initialize the "set" field.
* tree-ssa-loop-prefetch.c (PREFETCH_LATENCY,
SIMULTANEOUS_PREFETCHES): Removed.
(PREFETCH_BLOCK): Use L1_CACHE_LINE_SIZE.
(tree_ssa_prefetch_arrays): Dump the values of the parameters.
* config/sparc/sparc.c: Include params.h.
(sparc_override_options): Set SIMULTANEOUS_PREFETCHES and
L1_CACHE_LINE_SIZE parameters.
* config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
Removed.
* config/i386/i386.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
Removed.
* config/i386/i386.c: Include params.h.
(k8_cost): Change default value for SIMULTANEOUS_PREFETCHES.
(override_options): Set SIMULTANEOUS_PREFETCHES and
L1_CACHE_LINE_SIZE parameters.
* config/sh/sh.h (SIMULTANEOUS_PREFETCHES): Removed.
(OPTIMIZATION_OPTIONS): Set SIMULTANEOUS_PREFETCHES and
L1_CACHE_LINE_SIZE parameters.
* config/ia64/ia64.c (ia64_optimization_options): Set
SIMULTANEOUS_PREFETCHES and L1_CACHE_LINE_SIZE parameters.
* config/ia64/ia64.h (SIMULTANEOUS_PREFETCHES, PREFETCH_BLOCK):
Removed.
* params.def (PARAM_PREFETCH_LATENCY, PARAM_SIMULTANEOUS_PREFETCHES,
PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE): New params.
* doc/invoke.texi: Document new params.
From-SVN: r118728
Diffstat (limited to 'gcc/params.h')
-rw-r--r-- | gcc/params.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/params.h b/gcc/params.h index 32c9c8c..0d99755 100644 --- a/gcc/params.h +++ b/gcc/params.h @@ -49,6 +49,9 @@ typedef struct param_info /* The associated value. */ int value; + /* True if the parameter was explicitly set. */ + bool set; + /* Minimum acceptable value. */ int min_value; @@ -88,6 +91,10 @@ typedef enum compiler_param #define PARAM_VALUE(ENUM) \ (compiler_params[(int) ENUM].value) +/* True if the value of the parameter was explicitly changed. */ +#define PARAM_SET_P(ENUM) \ + (compiler_params[(int) ENUM].set) + /* Macros for the various parameters. */ #define SALIAS_MAX_IMPLICIT_FIELDS \ PARAM_VALUE (PARAM_SALIAS_MAX_IMPLICIT_FIELDS) @@ -151,4 +158,12 @@ typedef enum compiler_param ((size_t) PARAM_VALUE (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE)) #define MAX_SCHED_READY_INSNS \ PARAM_VALUE (PARAM_MAX_SCHED_READY_INSNS) +#define PREFETCH_LATENCY \ + PARAM_VALUE (PARAM_PREFETCH_LATENCY) +#define SIMULTANEOUS_PREFETCHES \ + PARAM_VALUE (PARAM_SIMULTANEOUS_PREFETCHES) +#define L1_CACHE_SIZE \ + PARAM_VALUE (PARAM_L1_CACHE_SIZE) +#define L1_CACHE_LINE_SIZE \ + PARAM_VALUE (PARAM_L1_CACHE_LINE_SIZE) #endif /* ! GCC_PARAMS_H */ |