annotate gcc/optabs-tree.h @ 127:4c56639505ff

fix function.c and add CbC-example Makefile
author mir3636
date Wed, 11 Apr 2018 18:46:58 +0900
parents 04ced10e8804
children 84e7813d76e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* Tree-based target query functions relating to optabs
kono
parents:
diff changeset
2 Copyright (C) 2001-2017 Free Software Foundation, Inc.
kono
parents:
diff changeset
3
kono
parents:
diff changeset
4 This file is part of GCC.
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 GCC is free software; you can redistribute it and/or modify
kono
parents:
diff changeset
7 it under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
8 the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
9 any later version.
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 GCC is distributed in the hope that it will be useful,
kono
parents:
diff changeset
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
kono
parents:
diff changeset
14 GNU General Public License for more details.
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
17 along with GCC; see the file COPYING3. If not see
kono
parents:
diff changeset
18 <http://www.gnu.org/licenses/>. */
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 #ifndef GCC_OPTABS_TREE_H
kono
parents:
diff changeset
21 #define GCC_OPTABS_TREE_H
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 #include "optabs-query.h"
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 /* An extra flag to control optab_for_tree_code's behavior. This is needed to
kono
parents:
diff changeset
26 distinguish between machines with a vector shift that takes a scalar for the
kono
parents:
diff changeset
27 shift amount vs. machines that take a vector for the shift amount. */
kono
parents:
diff changeset
28 enum optab_subtype
kono
parents:
diff changeset
29 {
kono
parents:
diff changeset
30 optab_default,
kono
parents:
diff changeset
31 optab_scalar,
kono
parents:
diff changeset
32 optab_vector
kono
parents:
diff changeset
33 };
kono
parents:
diff changeset
34
kono
parents:
diff changeset
35 /* Return the optab used for computing the given operation on the type given by
kono
parents:
diff changeset
36 the second argument. The third argument distinguishes between the types of
kono
parents:
diff changeset
37 vector shifts and rotates. */
kono
parents:
diff changeset
38 optab optab_for_tree_code (enum tree_code, const_tree, enum optab_subtype);
kono
parents:
diff changeset
39 bool supportable_convert_operation (enum tree_code, tree, tree, tree *,
kono
parents:
diff changeset
40 enum tree_code *);
kono
parents:
diff changeset
41 bool expand_vec_cmp_expr_p (tree, tree, enum tree_code);
kono
parents:
diff changeset
42 bool expand_vec_cond_expr_p (tree, tree, enum tree_code);
kono
parents:
diff changeset
43 void init_tree_optimization_optabs (tree);
kono
parents:
diff changeset
44 bool target_supports_op_p (tree, enum tree_code,
kono
parents:
diff changeset
45 enum optab_subtype = optab_default);
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 #endif