I need to dump all Gimple trees (kind of -fdump-tree-whatever). I created a plugin for the purpose, but I am not sure how should I access Gimple trees in pass. Plugin is hooked into GIMPLE_PASS:
static struct opt_pass my_pass =
{
.type = GIMPLE_PASS,
...
I tried to iterate over basic blocks using gsi (gimple_stmt_iterator), however, my dump is incomplete.
Can you help me, how should I access the Gimple trees, to get every single tree dumped?
Use
-fdump-tree-all
to dump all passes fortree
.