GCC Middle and Back End API Reference
optabs-tree.h
Go to the documentation of this file.
1/* Tree-based target query functions relating to optabs
2 Copyright (C) 2001-2026 Free Software Foundation, Inc.
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. */
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. */
41 enum tree_code *);
48bool target_supports_mask_load_store_p (machine_mode, machine_mode,
49 bool, internal_fn *, vec<int> *);
50bool can_vec_mask_load_store_p (machine_mode, machine_mode, bool,
51 internal_fn * = nullptr,
52 vec<int> * = nullptr);
54 internal_fn * = nullptr,
55 vec<int> * = nullptr);
56
57#endif
const union tree_node * const_tree
Definition coretypes.h:98
union tree_node * tree
Definition coretypes.h:97
internal_fn
Definition genmatch.cc:1024
tree_code
Definition genmatch.cc:1011
enum optab_tag optab
opt_mode< machine_mode > opt_machine_mode
Definition machmode.h:23
opt_machine_mode get_len_load_store_mode(machine_mode mode, bool is_load, internal_fn *ifn, vec< int > *elsvals)
Definition optabs-tree.cc:643
bool target_supports_op_p(tree type, enum tree_code code, enum optab_subtype ot_subtype)
Definition optabs-tree.cc:495
bool can_vec_mask_load_store_p(machine_mode mode, machine_mode mask_mode, bool is_load, internal_fn *ifn, vec< int > *elsvals)
Definition optabs-tree.cc:552
bool supportable_half_widening_operation(enum tree_code code, tree vectype_out, tree vectype_in, enum tree_code *code1)
Definition optabs-tree.cc:315
bool target_supports_mask_load_store_p(machine_mode mode, machine_mode mask_mode, bool is_load, internal_fn *ifn, vec< int > *elsvals)
Definition optabs-tree.cc:512
bool expand_vec_cmp_expr_p(tree value_type, tree mask_type, enum tree_code code)
Definition optabs-tree.cc:436
optab optab_for_tree_code(enum tree_code code, const_tree type, enum optab_subtype subtype)
Definition optabs-tree.cc:39
void init_tree_optimization_optabs(tree optnode)
Definition optabs-tree.cc:461
bool expand_vec_cond_expr_p(tree value_type, tree cmp_op_type)
Definition optabs-tree.cc:447
bool supportable_convert_operation(enum tree_code code, tree vectype_out, tree vectype_in)
Definition optabs-tree.cc:364
optab_subtype
Definition optabs-tree.h:29
@ optab_scalar
Definition optabs-tree.h:31
@ optab_vector
Definition optabs-tree.h:32
@ optab_vector_mixed_sign
Definition optabs-tree.h:33
@ optab_default
Definition optabs-tree.h:30
Definition vec.h:450