summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
diff options
context:
space:
mode:
authorJustin Holewinski <jholewinski@nvidia.com>2013-07-25 12:32:00 +0000
committerJustin Holewinski <jholewinski@nvidia.com>2013-07-25 12:32:00 +0000
commitb3d630ca21c7c89a3c4515313c16a2398a09481d (patch)
treeb43cb9a3143db9e22d32726ca739a8192f6e6b35 /llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
parent516d7971b317d54622c8267ceeeb87186cc9153c (diff)
downloadbcm5719-llvm-b3d630ca21c7c89a3c4515313c16a2398a09481d.tar.gz
bcm5719-llvm-b3d630ca21c7c89a3c4515313c16a2398a09481d.zip
Fix a bug in TableGen where the intrinsic function name recognizer could mis-identify names if one was a prefix substring of the other
For two intrinsics 'llvm.nvvm.texsurf.handle' and 'llvm.nvvm.texsurf.handle.internal', TableGen was emitting matching code like: if (Name.startswith("llvm.nvvm.texsurf.handle")) ... if (Name.startswith("llvm.nvvm.texsurf.handle.internal")) ... We can never match "llvm.nvvm.texsurf.handle.internal" here because it will always be erroneously matched by the first condition. The fix is to sort the intrinsic names and emit them in reverse order. llvm-svn: 187119
Diffstat (limited to 'llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud