GCC Middle and Back End API Reference
vec-perm-indices.h File Reference
Include dependency graph for vec-perm-indices.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  vec_perm_indices

Typedefs

typedef int_vector_builder< poly_int64vec_perm_builder

Functions

bool tree_to_vec_perm_builder (vec_perm_builder *, tree)
bool tree_to_vec_perm_indices (vec_perm_indices *, tree, tree, tree)
tree vec_perm_indices_to_tree (tree, const vec_perm_indices &)
rtx vec_perm_indices_to_rtx (machine_mode, const vec_perm_indices &)

Typedef Documentation

◆ vec_perm_builder

A representation of vector permutation indices.
   Copyright (C) 2017-2026 Free Software Foundation, Inc.

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 3, or (at your option) any later
version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING3.  If not see
<http://www.gnu.org/licenses/>.   
A vector_builder for building constant permutation vectors.
The elements do not need to be clamped to a particular range
of input elements.   

Function Documentation

◆ tree_to_vec_perm_builder()

bool tree_to_vec_perm_builder ( vec_perm_builder * builder,
tree cst )

◆ tree_to_vec_perm_indices()

bool tree_to_vec_perm_indices ( vec_perm_indices * indices,
tree op0,
tree op1,
tree perm_cst )
Try to read the contents of VECTOR_CST PERM_CST as a constant permutation
vector permuting OP0 and OP1.  Return true and populate INDICES on success,
otherwise return false without modifying INDICES.   

References initializer_zerop(), tree_to_vec_perm_builder(), tree_to_vec_perm_indices(), TREE_TYPE, and TYPE_VECTOR_SUBPARTS().

Referenced by lower_vec_perm(), and tree_to_vec_perm_indices().

◆ vec_perm_indices_to_rtx()

rtx vec_perm_indices_to_rtx ( machine_mode mode,
const vec_perm_indices & indices )

◆ vec_perm_indices_to_tree()