Get Neon intrinsic names from the new "Name" field in the tblgen records
authorBob Wilson <bob.wilson@apple.com>
Fri, 3 Dec 2010 17:19:39 +0000 (17:19 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 3 Dec 2010 17:19:39 +0000 (17:19 +0000)
instead of just converting the record name to lowercase.

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

utils/TableGen/NeonEmitter.cpp

index dc6b353bde1dd6287a86604a1ef52ea91217e636..30ad15c80fdaeedb0205464cc40da7de4cf42020 100644 (file)
@@ -968,7 +968,7 @@ void NeonEmitter::run(raw_ostream &OS) {
   // 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 @@ void NeonEmitter::runHeader(raw_ostream &OS) {
     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 @@ void NeonEmitter::runHeader(raw_ostream &OS) {
     
     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 @@ void NeonEmitter::runHeader(raw_ostream &OS) {
     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");