[llvm-commits] CVS: llvm/utils/TableGen/IntrinsicEmitter.cpp

Evan Cheng evan.cheng at apple.com
Tue Mar 28 14:26:09 PST 2006



Changes in directory llvm/utils/TableGen:

IntrinsicEmitter.cpp updated: 1.16 -> 1.17
---
Log message:

Don't sort the names before outputing the intrinsic name table. It causes a
mismatch against the enum table.
This is a part of Sabre's master plan to drive me nuts with subtle bugs that
happens to only affect x86 be. :-)


---
Diffs of the changes:  (+2 -7)

 IntrinsicEmitter.cpp |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)


Index: llvm/utils/TableGen/IntrinsicEmitter.cpp
diff -u llvm/utils/TableGen/IntrinsicEmitter.cpp:1.16 llvm/utils/TableGen/IntrinsicEmitter.cpp:1.17
--- llvm/utils/TableGen/IntrinsicEmitter.cpp:1.16	Fri Mar 24 13:49:31 2006
+++ llvm/utils/TableGen/IntrinsicEmitter.cpp	Tue Mar 28 16:25:56 2006
@@ -100,16 +100,11 @@
 void IntrinsicEmitter::
 EmitIntrinsicToNameTable(const std::vector<CodeGenIntrinsic> &Ints, 
                          std::ostream &OS) {
-  std::vector<std::string> Names;
-  for (unsigned i = 0, e = Ints.size(); i != e; ++i)
-    Names.push_back(Ints[i].Name);
-  std::sort(Names.begin(), Names.end());
-  
   OS << "// Intrinsic ID to name table\n";
   OS << "#ifdef GET_INTRINSIC_NAME_TABLE\n";
   OS << "  // Note that entry #0 is the invalid intrinsic!\n";
-  for (unsigned i = 0, e = Names.size(); i != e; ++i)
-    OS << "  \"" << Names[i] << "\",\n";
+  for (unsigned i = 0, e = Ints.size(); i != e; ++i)
+    OS << "  \"" << Ints[i].Name << "\",\n";
   OS << "#endif\n\n";
 }
 






More information about the llvm-commits mailing list