aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-11-11 01:19:24 +0000
committerOwen Anderson <resistor@mac.com>2010-11-11 01:19:24 +0000
commit336b8b42445920a3f59e42c61f2ccd9fbdfc497e (patch)
tree317436fd2642037c1acba8bad7f5ac15162e9f0a /utils
parent570a9226913ebe1af04832b8fb3273c70b4ee152 (diff)
Add support for specifying a PostEncoderMethod, which can perform post-processing after the automated encoding of an instruction.
Not yet used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118759 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/CodeEmitterGen.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/TableGen/CodeEmitterGen.cpp b/utils/TableGen/CodeEmitterGen.cpp
index e86c18fb66..e7b022af15 100644
--- a/utils/TableGen/CodeEmitterGen.cpp
+++ b/utils/TableGen/CodeEmitterGen.cpp
@@ -230,6 +230,10 @@ void CodeEmitterGen::run(raw_ostream &o) {
}
}
+ if (R->getValue("PostEncoderMethod"))
+ Case += " Value = " +
+ R->getValueAsString("PostEncoderMethod") + "(MI, Value);\n";
+
std::vector<std::string> &InstList = CaseMap[Case];
InstList.push_back(InstName);
}