This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Finding out what backend instruction pattern matches instruction


Andrew Hutchinson <andrewhutchinson@cox.net> writes:

> As I say above, the logic already exists as c function. If we could
> call these directly to determine the attribute value, it would be much
> easier!

You can.  Use symbol_ref.  Again, examples in mips.md.  Note how the
default value for the "length" attribute can call
mips_load_store_insns.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]