]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/convert.h
Lower VEC_COND_EXPR into internal functions.
[thirdparty/gcc.git] / gcc / convert.h
CommitLineData
6de2de12 1/* Definition of functions in convert.c.
8d9254fc 2 Copyright (C) 1993-2020 Free Software Foundation, Inc.
6de2de12 3
1322177d 4This file is part of GCC.
6de2de12 5
1322177d
LB
6GCC is free software; you can redistribute it and/or modify it under
7the terms of the GNU General Public License as published by the Free
9dcd6f09 8Software Foundation; either version 3, or (at your option) any later
1322177d 9version.
6de2de12 10
1322177d
LB
11GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or
13FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14for more details.
6de2de12
RK
15
16You should have received a copy of the GNU General Public License
9dcd6f09
NC
17along with GCC; see the file COPYING3. If not see
18<http://www.gnu.org/licenses/>. */
6de2de12 19
d0b25f9a
MA
20#ifndef GCC_CONVERT_H
21#define GCC_CONVERT_H
22
159b3be1 23extern tree convert_to_integer (tree, tree);
415594bb 24extern tree convert_to_integer_maybe_fold (tree, tree, bool);
159b3be1 25extern tree convert_to_pointer (tree, tree);
415594bb 26extern tree convert_to_pointer_maybe_fold (tree, tree, bool);
159b3be1 27extern tree convert_to_real (tree, tree);
415594bb 28extern tree convert_to_real_maybe_fold (tree, tree, bool);
0f996086 29extern tree convert_to_fixed (tree, tree);
159b3be1 30extern tree convert_to_complex (tree, tree);
415594bb 31extern tree convert_to_complex_maybe_fold (tree, tree, bool);
159b3be1 32extern tree convert_to_vector (tree, tree);
d0b25f9a 33
415594bb
JM
34extern inline tree convert_to_integer_nofold (tree t, tree x)
35{ return convert_to_integer_maybe_fold (t, x, false); }
36extern inline tree convert_to_pointer_nofold (tree t, tree x)
37{ return convert_to_pointer_maybe_fold (t, x, false); }
38extern inline tree convert_to_real_nofold (tree t, tree x)
39{ return convert_to_real_maybe_fold (t, x, false); }
40extern inline tree convert_to_complex_nofold (tree t, tree x)
41{ return convert_to_complex_maybe_fold (t, x, false); }
42
dfd7fdca
DM
43extern tree preserve_any_location_wrapper (tree result, tree orig_expr);
44
d0b25f9a 45#endif /* GCC_CONVERT_H */