[llvm-commits] [RFC, AsmParser] How to handle '$' like '.' ?

Ulrich Weigand Ulrich.Weigand at de.ibm.com
Thu Jan 24 12:38:32 PST 2013


Hello,

on PowerPC and a couple of other platforms, the GNU assembler allows using
a stand-alone '$' as part of an expression, and interprets it to refer to
the current PC just like '.'.  (You can still use '$' as part of
identifiers otherwise.)   For compatibility, we need to model the same
behaviour in the LLVM AsmParser.

Unfortunately, there don't appear to be any existing hooks within the core
AsmParser expression parsing logic where target-specific behaviour like
this could be implemented.  Any suggestions where this should be handled?
Thanks!

Bye,
Ulrich




More information about the llvm-commits mailing list