]> gcc.gnu.org Git - gcc.git/blame - gcc/optabs-tree.h
Daily bump.
[gcc.git] / gcc / optabs-tree.h
CommitLineData
385399a8 1/* Tree-based target query functions relating to optabs
aeee4812 2 Copyright (C) 2001-2023 Free Software Foundation, Inc.
385399a8
RS
3
4This file is part of GCC.
5
6GCC is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 3, or (at your option)
9any later version.
10
11GCC is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
19
20#ifndef GCC_OPTABS_TREE_H
21#define GCC_OPTABS_TREE_H
22
23#include "optabs-query.h"
24
25/* An extra flag to control optab_for_tree_code's behavior. This is needed to
26 distinguish between machines with a vector shift that takes a scalar for the
27 shift amount vs. machines that take a vector for the shift amount. */
28enum optab_subtype
29{
30 optab_default,
31 optab_scalar,
ab0a6b21
TC
32 optab_vector,
33 optab_vector_mixed_sign
385399a8
RS
34};
35
36/* Return the optab used for computing the given operation on the type given by
37 the second argument. The third argument distinguishes between the types of
38 vector shifts and rotates. */
39optab optab_for_tree_code (enum tree_code, const_tree, enum optab_subtype);
4af29981
JH
40bool
41supportable_half_widening_operation (enum tree_code, tree, tree,
42 enum tree_code *);
477daf83 43bool supportable_convert_operation (enum tree_code, tree, tree,
385399a8 44 enum tree_code *);
96592eed
JJ
45bool expand_vec_cmp_expr_p (tree, tree, enum tree_code);
46bool expand_vec_cond_expr_p (tree, tree, enum tree_code);
385399a8 47void init_tree_optimization_optabs (tree);
71f82be9
JG
48bool target_supports_op_p (tree, enum tree_code,
49 enum optab_subtype = optab_default);
385399a8
RS
50
51#endif
This page took 4.892986 seconds and 5 git commands to generate.