diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2013-09-26 13:23:31 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2013-09-26 13:23:31 +0000 |
commit | ff2a63a749c386637ef085f7bc3102a8d8d2aab3 (patch) | |
tree | 0bdac19cc1c197b2e326293eb4c1344554b4e7b5 /gcc/gimple-builder.h | |
parent | a2544177b989c29fe893e55d422c8d9e6f27c6b3 (diff) | |
download | gcc-ff2a63a749c386637ef085f7bc3102a8d8d2aab3.zip gcc-ff2a63a749c386637ef085f7bc3102a8d8d2aab3.tar.gz gcc-ff2a63a749c386637ef085f7bc3102a8d8d2aab3.tar.bz2 |
gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
2013-09-26 Andrew MacLeod <amacleod@redhat.com>
* gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
(struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
tree-ssa.c
(create_gimple_tmp): Delete.
(get_expr_type, build_assign, build_type_cast): Move to...
* gimple-builder.c: New File.
(get_expr_type): Relocate from gimple.c.
(build_assign, build_type_cast): Change to only create ssanames.
* gimple.h: Move prototypes to...
* gimple-builder.h: New File. Here.
* tree-ssa.h: And here.
* tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
count_uses_and_derefs): Relocate from gimple.c.
(gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
* tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
* tree-ssa-math-opts (execute_cse_reciprocals): Use
gimple_replace_ssa_lhs.
* asan.c: Include gimple-builder.h.
* Makefile.in: Add gimple-builder.o.
From-SVN: r202945
Diffstat (limited to 'gcc/gimple-builder.h')
-rw-r--r-- | gcc/gimple-builder.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/gcc/gimple-builder.h b/gcc/gimple-builder.h new file mode 100644 index 0000000..532c04e --- /dev/null +++ b/gcc/gimple-builder.h @@ -0,0 +1,34 @@ +/* Header file for high level statement building routines. + Copyright (C) 2013 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/>. */ + + +#ifndef GCC_GIMPLE_BUILDER_H +#define GCC_GIMPLE_BUILDER_H + +tree create_gimple_tmp (tree, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, tree, int, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, gimple, int, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, tree, tree, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, gimple, tree, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, tree, gimple, tree lhs = NULL_TREE); +gimple build_assign (enum tree_code, gimple, gimple, tree lhs = NULL_TREE); +gimple build_type_cast (tree, tree, tree lhs = NULL_TREE); +gimple build_type_cast (tree, gimple, tree lhs = NULL_TREE); + +#endif /* GCC_GIMPLE_BUILDER_H */ |