[llvm-commits] [llvm] r120809 - /llvm/trunk/utils/TableGen/NeonEmitter.cpp

Bob Wilson bob.wilson at apple.com
Fri Dec 3 09:19:39 PST 2010


Author: bwilson
Date: Fri Dec  3 11:19:39 2010
New Revision: 120809

URL: http://llvm.org/viewvc/llvm-project?rev=120809&view=rev
Log:
Get Neon intrinsic names from the new "Name" field in the tblgen records
instead of just converting the record name to lowercase.

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

Modified: llvm/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/NeonEmitter.cpp?rev=120809&r1=120808&r2=120809&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/NeonEmitter.cpp Fri Dec  3 11:19:39 2010
@@ -968,7 +968,7 @@
   // Unique the return+pattern types, and assign them.
   for (unsigned i = 0, e = RV.size(); i != e; ++i) {
     Record *R = RV[i];
-    std::string name = LowercaseString(R->getName());
+    std::string name = R->getValueAsString("Name");
     std::string Proto = R->getValueAsString("Prototype");
     std::string Types = R->getValueAsString("Types");
     
@@ -1081,7 +1081,7 @@
     if (R->getSuperClasses().size() < 2)
       throw TGError(R->getLoc(), "Builtin has no class kind");
     
-    std::string name = LowercaseString(R->getName());
+    std::string name = R->getValueAsString("Name");
     ClassKind ck = ClassMap[R->getSuperClasses()[1]];
     
     for (unsigned ti = 0, te = TypeVec.size(); ti != te; ++ti) {
@@ -1108,7 +1108,7 @@
     
     std::string Proto = R->getValueAsString("Prototype");
     std::string Types = R->getValueAsString("Types");
-    std::string name = LowercaseString(R->getName());
+    std::string name = R->getValueAsString("Name");
     
     // Functions with 'a' (the splat code) in the type prototype should not get
     // their own builtin as they use the non-splat variant.
@@ -1161,7 +1161,7 @@
     if (k != OpNone)
       continue;
     
-    std::string name = LowercaseString(R->getName());
+    std::string name = R->getValueAsString("Name");
     std::string Proto = R->getValueAsString("Prototype");
     std::string Types = R->getValueAsString("Types");
     





More information about the llvm-commits mailing list