[llvm-commits] [llvm] r148147 - /llvm/trunk/utils/TableGen/CodeGenRegisters.cpp

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jan 13 14:23:50 PST 2012


Author: stoklund
Date: Fri Jan 13 16:23:50 2012
New Revision: 148147

URL: http://llvm.org/viewvc/llvm-project?rev=148147&view=rev
Log:
Skip the NAME field when forming tuples.

Modified:
    llvm/trunk/utils/TableGen/CodeGenRegisters.cpp

Modified: llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenRegisters.cpp?rev=148147&r1=148146&r2=148147&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenRegisters.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenRegisters.cpp Fri Jan 13 16:23:50 2012
@@ -215,6 +215,9 @@
       for (unsigned i = 0, e = Proto->getValues().size(); i != e; ++i) {
         RecordVal RV = Proto->getValues()[i];
 
+        if (RV.getName() == "NAME")
+          continue;
+
         // Replace the sub-register list with Tuple.
         if (RV.getName() == "SubRegs")
           RV.setValue(ListInit::get(Tuple, RegisterRecTy));





More information about the llvm-commits mailing list