[PATCH] [TableGen] Add alternative register matching support to AsmMatcher
Dylan McKay
dylanmckay34 at gmail.com
Tue Jun 16 08:08:33 PDT 2015
This commit adds a new flag ShouldEmitMatchRegisterAltName to
include/Target/Target.td, and generates an alternative register name
matching function named MatchRegisterAlias to the generated AsmMatcher if
it is enabled.
Backends can use this to parse alternative register names based on values
stored
in TableGen files. The AVR-LLVM <https://github.com/avr-llvm/llvm> project
is using this function to parse special pointer registers, identified by X,
Y, and Z, which are alternative names to the GPR pairs r27:r26, r29:r28,
and r31:r30.
Files changed:
- include/Target/Target.td
- utils/TableGen/AsmMatcherEmitter.cpp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150617/6b5ea73a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TableGen-Add-MatchRegisterAltName-to-AsmMatcher.patch
Type: text/x-patch
Size: 3093 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150617/6b5ea73a/attachment.bin>
More information about the llvm-commits
mailing list