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
This commit is contained in:
Owen Anderson 2010-11-11 01:19:24 +00:00
parent 570a922691
commit 336b8b4244

View File

@ -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);
}