aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/interface.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-07-31 14:24:26 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:20:22 -0300
commit63724385498af24987207fddb6c11368ebdd18e7 (patch)
treede0d7646d22fafd3f06bcb6a46413194ca1d1a47 /gcc/fortran/interface.c
parent83190111bd80b91d1e5fc36dac444ebeabda49c6 (diff)
downloadgcc-63724385498af24987207fddb6c11368ebdd18e7.zip
gcc-63724385498af24987207fddb6c11368ebdd18e7.tar.gz
gcc-63724385498af24987207fddb6c11368ebdd18e7.tar.bz2
Amend match.pd syntax with force-simplified results
This adds a ! marker to result expressions that should simplify (and if not fail the simplification). This can for example be used like (simplify (plus (vec_cond:s @0 @1 @2) @3) (vec_cond @0 (plus! @1 @3) (plus! @2 @3))) to make the simplification only apply in case both plus operations in the result end up simplified to a simple operand. 2020-07-31 Richard Biener <rguenther@suse.de> * genmatch.c (expr::force_leaf): Add and initialize. (expr::gen_transform): Honor force_leaf by passing NULL as sequence argument to maybe_push_res_to_seq. (parser::parse_expr): Allow ! marker on result expression operations. * doc/match-and-simplify.texi: Amend.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions