diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-06 06:39:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-06 06:39:47 +0000 |
commit | 225549f775db61c5dba10e14758f4b43c53ef593 (patch) | |
tree | a1bbc58de5faf69dc1f2ec4a8dd8b4391fe48993 /utils/TableGen/CodeGenInstruction.h | |
parent | 2a301704ea76535f0485d5c3b75664b323249bdb (diff) |
disolve a hack, having CodeGenInstAlias decode the alias in the .td
file instead of the asmmatcher.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/CodeGenInstruction.h')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h index 24bdbe2794..625afc6bef 100644 --- a/utils/TableGen/CodeGenInstruction.h +++ b/utils/TableGen/CodeGenInstruction.h @@ -15,6 +15,7 @@ #define CODEGEN_INSTRUCTION_H #include "llvm/CodeGen/ValueTypes.h" +#include "llvm/ADT/StringRef.h" #include <string> #include <vector> #include <utility> @@ -264,7 +265,22 @@ namespace llvm { /// Result - The result instruction. DagInit *Result; - CodeGenInstAlias(Record *R); + /// ResultInst - The instruction generated by the alias (decoded from + /// Result). + CodeGenInstruction *ResultInst; + + + struct ResultOperand { + StringRef Name; + Record *R; + + ResultOperand(StringRef N, Record *r) : Name(N), R(r) {} + }; + + /// ResultOperands - The decoded operands for the result instruction. + std::vector<ResultOperand> ResultOperands; + + CodeGenInstAlias(Record *R, CodeGenTarget &T); }; } |