GCC allows each target to define a set of non-letter and non-digit escaped characters for inline assembly that will be replaced by another string (They call this "punctuation" characters. The existing "%%" and "%{" -- replaced by '%' and '{' at the end -- can be seen as special cases shared by all targets).
This patch implements this feature by adding a new hook in TargetInfo.
Updated: In case you wonder, this is a list of supported punctuation chars for i386 in GCC.
And these are punctuations for M68k.
Use triple slashes so that a Doxygen comment can be produced. End sentence with a period.