1/* Copyright (C) 1988-2023 Free Software Foundation, Inc.
2
3This file is part of GCC.
4
5GCC is free software; you can redistribute it and/or modify
6it under the terms of the GNU General Public License as published by
7the Free Software Foundation; either version 3, or (at your option)
8any later version.
9
10GCC is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License
16along with GCC; see the file COPYING3. If not see
17<http://www.gnu.org/licenses/>. */
18
19#ifndef GCC_I386_OPTIONS_H
20#define GCC_I386_OPTIONS_H
21
22extern int ix86_omp_device_kind_arch_isa (enum omp_device_kind_arch_isa trait,
23 const char *name);
24
25char *ix86_target_string (HOST_WIDE_INT isa, HOST_WIDE_INT isa2,
26 int flags, int flags2,
27 const char *arch, const char *tune,
28 enum fpmath_unit fpmath,
29 enum prefer_vector_width pvw,
30 enum prefer_vector_width move_max,
31 enum prefer_vector_width store_max,
32 bool add_nl_p, bool add_abi_p);
33
34extern enum attr_cpu ix86_schedule;
35
36extern enum processor_type ix86_tune;
37extern enum processor_type ix86_arch;
38extern unsigned char ix86_prefetch_sse;
39extern const struct processor_costs *ix86_tune_cost;
40
41extern int ix86_tune_defaulted;
42extern int ix86_arch_specified;
43
44extern unsigned int ix86_default_incoming_stack_boundary;
45extern HOST_WIDE_INT deferred_isa_values;
46extern HOST_WIDE_INT deferred_isa_values2;
47
48extern unsigned int ix86_preferred_stack_boundary;
49extern unsigned int ix86_user_incoming_stack_boundary;
50extern unsigned int ix86_default_incoming_stack_boundary;
51extern unsigned int ix86_incoming_stack_boundary;
52
53extern char *ix86_offload_options (void);
54extern void ix86_option_override (void);
55extern void ix86_override_options_after_change (void);
56void ix86_set_current_function (tree fndecl);
57bool ix86_function_naked (const_tree fn);
58void ix86_simd_clone_adjust (struct cgraph_node *node);
59
60extern tree (*ix86_veclib_handler) (combined_fn, tree, tree);
61extern tree ix86_veclibabi_svml (combined_fn, tree, tree);
62extern tree ix86_veclibabi_acml (combined_fn, tree, tree);
63
64enum ix86_function_specific_strings
65{
66 IX86_FUNCTION_SPECIFIC_ARCH,
67 IX86_FUNCTION_SPECIFIC_TUNE,
68 IX86_FUNCTION_SPECIFIC_MAX
69};
70
71extern const char *stringop_alg_names[];
72
73void ix86_add_new_builtins (HOST_WIDE_INT isa, HOST_WIDE_INT isa2);
74void ix86_function_specific_save (struct cl_target_option *,
75 struct gcc_options *opts,
76 struct gcc_options *opts_set);
77void ix86_function_specific_restore (struct gcc_options *opts,
78 struct gcc_options *opts_set,
79 struct cl_target_option *);
80void ix86_function_specific_post_stream_in (struct cl_target_option *);
81void ix86_function_specific_print (FILE *, int,
82 struct cl_target_option *);
83bool ix86_valid_target_attribute_p (tree, tree, tree, int);
84
85extern const struct attribute_spec ix86_attribute_table[];
86
87
88#endif /* GCC_I386_OPTIONS_H */
89

source code of gcc/config/i386/i386-options.h