If the macro ASSEMBLER_DIALECT is defined, characters '{', '}' and '|' in assembler code (both in asm() and output templates of machine description) are handled as delimiters of alternative assembler syntax variants.This patch enables printing '{', '}' and '|' characters in assembler code by escaping them with %. It`s needed for future extensions of Intel ISA.
There are four in-tree target architectures that already use %|. I think
it would be better if you made these new escapes target-specific. For the logic to find the end of an alternative, you can simply always skip over the next char after any percent sign (well, check for end of string, of course); there is no need to count percent signs. Segher
