On 1/12/07, Andrija Radicevic <[EMAIL PROTECTED]> wrote:
> On Thursday 11 January 2007 19:27, Steven Bosscher wrote:
> > On 1/11/07, Andrija Radicevic <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > how could I find out from which patterns, in the md file, the
> 00.expand
> > > file was generated (i.e. to map the patterns in the expand file with
> the
> > > ones in the .md file)? Is there a compiler option/switch which would
> tell
> > > the compiler mark the patterns in the expand file with the insns names
> > > from the md file?
> >
> > There isn't.
> >
> > You would have to walk over the insn and make recog assign them an insn
> > code.
>
> That still wouldn't tell you what names were used to generate them. It's
> common to have a named expander that generates other (possibly anonymous
> insns).
>
Does that mean that the expand file isn't the dump after the initial rtl
generation phase? According to internals manual, only the named
define_insn and define_expand are used during rtl generation phase.
The manual is correct, but the define_expands can produce the anonymous insns.
If you recog an insn that isn't a named pattern, you still get the
"name" of the define_insn (with the "*" in front of it) or just "" if
the insn doesn't have a name. You always get at least the insn code.
Gr.
Steven