[llvm-commits] [llvm] r118759 - /llvm/trunk/utils/TableGen/CodeEmitterGen.cpp
Owen Anderson
resistor at mac.com
Wed Nov 10 17:19:24 PST 2010
Author: resistor
Date: Wed Nov 10 19:19:24 2010
New Revision: 118759
URL: http://llvm.org/viewvc/llvm-project?rev=118759&view=rev
Log:
Add support for specifying a PostEncoderMethod, which can perform post-processing after the automated encoding of an instruction.
Not yet used.
Modified:
llvm/trunk/utils/TableGen/CodeEmitterGen.cpp
Modified: llvm/trunk/utils/TableGen/CodeEmitterGen.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeEmitterGen.cpp?rev=118759&r1=118758&r2=118759&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeEmitterGen.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeEmitterGen.cpp Wed Nov 10 19:19:24 2010
@@ -230,6 +230,10 @@
}
}
+ if (R->getValue("PostEncoderMethod"))
+ Case += " Value = " +
+ R->getValueAsString("PostEncoderMethod") + "(MI, Value);\n";
+
std::vector<std::string> &InstList = CaseMap[Case];
InstList.push_back(InstName);
}
More information about the llvm-commits
mailing list