Allow targets to add custom asm operand matching logic.
authorJim Grosbach <grosbach@apple.com>
Wed, 6 Feb 2013 06:00:06 +0000 (06:00 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 6 Feb 2013 06:00:06 +0000 (06:00 +0000)
commit86c652a6b23556afd7e830eba2e6f099ed15aa5e
treedff31b2e777c9ad0d4bc40bbba1280ed72d1a537
parent36722d269408d390859a66012123b5e5af72fca8
Allow targets to add custom asm operand matching logic.

For example, ARM has several instructions with a literal '#0' immediate in the syntax
that's not represented as an actual operand. The asm matcher is expected a token
operand, but the parser will have created an immediate operand. This is currently
handled by dedicated per-instruction C++ munging of the ParsedAsmOperand list, but
will be better handled by this hook.

llvm-svn: 174487
llvm/include/llvm/MC/MCTargetAsmParser.h
llvm/utils/TableGen/AsmMatcherEmitter.cpp