diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-02-26 03:09:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-02-26 03:09:12 +0000 |
commit | 31ca7efa041d3f97906cfc943325cd9e92e583e5 (patch) | |
tree | dc1db5010ec8bb8f05510dca63bdb7adbef8cc42 /clang/lib/Sema/SemaChecking.cpp | |
parent | 725269a0b4acf8e51643a5e2236ce9d914e7c67a (diff) | |
download | bcm5719-llvm-31ca7efa041d3f97906cfc943325cd9e92e583e5.tar.gz bcm5719-llvm-31ca7efa041d3f97906cfc943325cd9e92e583e5.zip |
A new TableGen feature! (Not turned on just yet.)
InstAlias<{alias}, {aliasee}>;
The InstAlias instruction should be able to go from the MCInst to the
{alias}. All of the information is there to match the MCInst with the
{aliasee}. From there, it's a simple matter to emit the {alias}, with the
correct operands from the {aliasee}.
The code this patch generates can be used by the InstPrinter to automatically
print out the alias without having to write special C++ code to handle the
situation.
This is a WIP, and therefore are several limitations. For instance, it cannot
handle AsmOperands at the moment. It also doesn't know what to do when two
{alias}es match the same {aliasee}. (Currently, it just ignores those two cases
and allows the printInstruction method to handle them.)
llvm-svn: 126538
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
0 files changed, 0 insertions, 0 deletions