Mercurial > hg > CbC > CbC_gcc
diff gcc/gimple-match.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line diff
--- a/gcc/gimple-match.h Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/gimple-match.h Thu Feb 13 11:34:05 2020 +0900 @@ -1,6 +1,6 @@ /* Gimple simplify definitions. - Copyright (C) 2011-2018 Free Software Foundation, Inc. + Copyright (C) 2011-2020 Free Software Foundation, Inc. Contributed by Richard Guenther <rguenther@suse.de> This file is part of GCC. @@ -43,8 +43,9 @@ /* Represents the condition under which an operation should happen, and the value to use otherwise. The condition applies elementwise (as for VEC_COND_EXPR) if the values are vectors. */ -struct gimple_match_cond +class gimple_match_cond { +public: enum uncond { UNCOND }; /* Build an unconditional op. */ @@ -79,8 +80,9 @@ /* Represents an operation to be simplified, or the result of the simplification. */ -struct gimple_match_op +class gimple_match_op { +public: gimple_match_op (); gimple_match_op (const gimple_match_cond &, code_helper, tree, unsigned int); gimple_match_op (const gimple_match_cond &, @@ -105,6 +107,8 @@ tree op_or_null (unsigned int) const; + bool resimplify (gimple_seq *, tree (*)(tree)); + /* The maximum value of NUM_OPS. */ static const unsigned int MAX_NUM_OPS = 5; @@ -331,11 +335,6 @@ bool gimple_simplify (gimple *, gimple_match_op *, gimple_seq *, tree (*)(tree), tree (*)(tree)); -bool gimple_resimplify1 (gimple_seq *, gimple_match_op *, tree (*)(tree)); -bool gimple_resimplify2 (gimple_seq *, gimple_match_op *, tree (*)(tree)); -bool gimple_resimplify3 (gimple_seq *, gimple_match_op *, tree (*)(tree)); -bool gimple_resimplify4 (gimple_seq *, gimple_match_op *, tree (*)(tree)); -bool gimple_resimplify5 (gimple_seq *, gimple_match_op *, tree (*)(tree)); tree maybe_push_res_to_seq (gimple_match_op *, gimple_seq *, tree res = NULL_TREE); void maybe_build_generic_op (gimple_match_op *);