More consistently dump GIMPLE FE consumable stmts
authorRichard Biener <rguenther@suse.de>
Tue, 5 Oct 2021 12:49:42 +0000 (14:49 +0200)
committerRichard Biener <rguenther@suse.de>
Wed, 6 Oct 2021 10:02:14 +0000 (12:02 +0200)
commit90c3a62272313bb08cd5d9a948ff2d71af73b294
tree44b87720221147d946d71b0282a85bc56c2a71d1
parentba837323dbda2bca5a1c8a4c78092a88241dcfa3
More consistently dump GIMPLE FE consumable stmts

The following makes more stmts consumable with the GIMPLE FE
when dumping with -gimple.  In particular addresses in GIMPLE
operand position require wrapping with _Literal.

The TDF_ flag space is now exhausted and I've removed overlaps
and re-ordered things as to how it is supposed to work and
made it uint32_t and prepared the operator overloads for an
easy migration to uint64_t once required.

2021-10-05  Richard Biener  <rguenther@suse.de>

PR c/102605
* dumpfile.h (TDF_GIMPLE_VAL): New.
(dump_flag): Re-order and adjust TDF_* flags.  Make
the enum uint32_t.  Use std::underlying_type in the
operator overloads.
(optgroup_flag): Likewise for the operator overloads.
* tree-pretty-print.c (dump_generic_node): Wrap ADDR_EXPR
in _Literal if TDF_GIMPLE_VAL.
* gimple-pretty-print.c (dump_gimple_assign): Add
TDF_GIMPLE_VAL to flags when dumping operands where only
is_gimple_val are allowed.
(dump_gimple_cond): Likewise.
gcc/dumpfile.h
gcc/gimple-pretty-print.c
gcc/tree-pretty-print.c