[LLVMdev] Where can I find an explanation of $src1, $src2, $in, $ptr, etc.?

Bob Wilson bob.wilson at apple.com
Mon Aug 16 19:42:49 PDT 2010

On Aug 16, 2010, at 7:24 PM, Mark Lacey wrote:

> I have read through the TableGen Fundamentals documentation and been browsing various .td files. One thing that is not clear to me is where things like $src1 (as in GR32:$src1) are defined, and what they mean. The TableGen Fundamentals page seems silent on this, and I have not found other documentation that explains it. Browsing through the .td files has not helped, either (although that has been quite useful to clarify things that are not spelled out in detail on the TableGen Fundamentals page).

It's not entirely clear what you're referring to, but in general, those are just arbitrary operand names.  They are defined and used within the instruction patterns.  If that doesn't help, perhaps you could post a specific example that you're having trouble with.

More information about the llvm-dev mailing list