1 /* Preamble and helpers for the autogenerated generic-match.c file.
2 Copyright (C) 2014-2015 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
22 #include "coretypes.h"
28 #include "fold-const.h"
29 #include "stringpool.h"
30 #include "stor-layout.h"
33 #include "hard-reg-set.h"
36 #include "basic-block.h"
37 #include "tree-ssa-alias.h"
38 #include "internal-fn.h"
39 #include "gimple-expr.h"
42 #include "gimple-ssa.h"
43 #include "tree-ssanames.h"
44 #include "gimple-fold.h"
45 #include "gimple-iterator.h"
47 #include "insn-config.h"
58 #include "tree-phinodes.h"
59 #include "ssa-iterators.h"
61 #include "generic-match.h"
63 /* Routine to determine if the types T1 and T2 are effectively
64 the same for GENERIC. If T1 or T2 is not a type, the test
65 applies to their TREE_TYPE. */
68 types_match (tree t1
, tree t2
)
75 return TYPE_MAIN_VARIANT (t1
) == TYPE_MAIN_VARIANT (t2
);
78 /* Return if T has a single use. For GENERIC, we assume this is
82 single_use (tree t ATTRIBUTE_UNUSED
)