[llvm-dev] Problem with GenAsmMatcher: ($addr)

Robert Baruch via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 19 08:30:32 PST 2019


Hi all,

My instruction is something like "LDA ($5000),Y". So my argstr pattern in
the td file is "($$$addr),Y". The problem is that I'm getting an error from
tablegen -gen-asm-matcher:

error: unable to find operand: 'addr)'.

Then I looked at GenAsmMatcher.cpp and tried "($$${addr}),Y" but got
"error: unable to find operand: '$addr'"

So,

1. How do I fix this?
2. Is there any documentation on what the format of the argstr should be?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190119/cb99a3ec/attachment.html>


More information about the llvm-dev mailing list