summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/AsmWriterInst.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2016-01-17 08:05:33 +0000
committerCraig Topper <craig.topper@gmail.com>2016-01-17 08:05:33 +0000
commit9e9ae60b9d92ed9180ad547c97b8def9f4b4450a (patch)
treed90129100504211b57f1decd9db1b9cf721c98df /llvm/utils/TableGen/AsmWriterInst.h
parenta99859d7da46f445717f7e7bf22deb5bc64ab3d2 (diff)
downloadbcm5719-llvm-9e9ae60b9d92ed9180ad547c97b8def9f4b4450a.tar.gz
bcm5719-llvm-9e9ae60b9d92ed9180ad547c97b8def9f4b4450a.zip
[TableGen] Changes to AsmWriterEmitter to remove the CodeGenInstruction to AsmWriterInst map. NFC
Adds the corresponding CodeGenInstruction number to each AsmWriterInst. Then write all the operand uniqueing loops using the AsmWriterInst array and indices. Then use the CodeGenInstruction index to fill out the OpCodeInfo array. llvm-svn: 258005
Diffstat (limited to 'llvm/utils/TableGen/AsmWriterInst.h')
-rw-r--r--llvm/utils/TableGen/AsmWriterInst.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h
index 3448ac14af7..16204173024 100644
--- a/llvm/utils/TableGen/AsmWriterInst.h
+++ b/llvm/utils/TableGen/AsmWriterInst.h
@@ -86,8 +86,10 @@ namespace llvm {
public:
std::vector<AsmWriterOperand> Operands;
const CodeGenInstruction *CGI;
+ unsigned CGIIndex;
- AsmWriterInst(const CodeGenInstruction &CGI, unsigned Variant);
+ AsmWriterInst(const CodeGenInstruction &CGI, unsigned CGIIndex,
+ unsigned Variant);
/// MatchesAllButOneOp - If this instruction is exactly identical to the
/// specified instruction except for one differing operand, return the
OpenPOWER on IntegriCloud