Displaying 2 results from an estimated 2 matches for "getmnemonicacceptinfo".
2015 Sep 28
2
Parse Instruction
...emonic expected to have.
In comma-separated assembly code, it just consuming commas (while
(getLexer().is(AsmToken::Comma))) and adds operands, but it's not the case
for space...
I have a dirty hack, that I manually provide such information (number of
operands) in a function called for example getMnemonicAcceptInfo and with a
for loop I parse the operand!!
What would you suggest for parsing space-separated assembly codes when it
comes to figuring out if a mnemonic has two operands or one?
Cheers,
ES
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pip...
2015 Sep 28
3
Parse Instruction
...nds as long as you
see spaces). LLVM will reject instructions with too many operands (as
defined in the .td files).
Is this something that would work with your assembly syntax?
Cheers,
Pierre-Andre
On 28/09/15 14:21, Sky Flyer via llvm-dev wrote:
> practically I cannot use a function namly *getMnemonicAcceptInfo*
> (mnemonic as input, and number of possible outputs as output), because
> there are mnemonics that accepts different number of operands! :-/
>
> Any help is highly appreciated.
>
> On Mon, Sep 28, 2015 at 10:53 AM, Sky Flyer <skylake007 at googlemail.com
> <mailto:sk...