summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/NeonEmitter.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-03 17:19:39 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-03 17:19:39 +0000
commit074436b090f9094f10b1268600783bb89e92bd70 (patch)
treedbcd8902d7fc4742f576fbf42215ba0de9a7da9f /llvm/utils/TableGen/NeonEmitter.cpp
parent17fed4c7542a358bebd6587471bb8f99ae2a71bc (diff)
downloadbcm5719-llvm-074436b090f9094f10b1268600783bb89e92bd70.tar.gz
bcm5719-llvm-074436b090f9094f10b1268600783bb89e92bd70.zip
Get Neon intrinsic names from the new "Name" field in the tblgen records
instead of just converting the record name to lowercase. llvm-svn: 120809
Diffstat (limited to 'llvm/utils/TableGen/NeonEmitter.cpp')
-rw-r--r--llvm/utils/TableGen/NeonEmitter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/NeonEmitter.cpp b/llvm/utils/TableGen/NeonEmitter.cpp
index dc6b353bde1..30ad15c80fd 100644
--- a/llvm/utils/TableGen/NeonEmitter.cpp
+++ b/llvm/utils/TableGen/NeonEmitter.cpp
@@ -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");
OpenPOWER on IntegriCloud