Add support for specifying a PostEncoderMethod, which can perform post-processing...
authorOwen Anderson <resistor@mac.com>
Thu, 11 Nov 2010 01:19:24 +0000 (01:19 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 11 Nov 2010 01:19:24 +0000 (01:19 +0000)
Not yet used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118759 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index e86c18fb66382c8ef50c20a37299f35af5fe2684..e7b022af15f972505629ad8b1f9f87587ac09d71 100644 (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);
   }