Hi

Le 19 juil. 2011 à 18:13, Georg-Johann Lay a écrit :
> How can a backend add a pass?

I've never seen any warning about adding a backend pass in
the plugin documentation, which may also register passes thanks
to register_pass. I'm not a guru, but i think it's ok to add it as any
other pass (might need confirmation).

> The pass is added, but it's the last pass of all tree
> passes, i.e. it's inserted after .optimized and
> .statistics; at least the pass number indicate that.

As for as I know, the static pass number is irrelevant in your case
as it's only useful for debugging purpose. This number will be used
in the tree-dump filename (if you ask for a particular dump), that's why
*prefixed passes (that can't be dumped) use -1 as static pass number.

So i'll advice you to check where your pass really is inserted otherwise
(maybe with dump_passes())

Romain Geissler

Reply via email to