diff options
author | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2017-12-04 14:19:33 +0000 |
---|---|---|
committer | Jonas Hahnfeld <hahnjo@hahnjo.de> | 2017-12-04 14:19:33 +0000 |
commit | 5db24d7c2290f8b1eabb29ae6708d6ec34ebceaa (patch) | |
tree | e77d594d2b6c589573ff66575167505a685780f3 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 64774bafff420048a3ff6f45cb8543f6cc7bea36 (diff) | |
download | bcm5719-llvm-5db24d7c2290f8b1eabb29ae6708d6ec34ebceaa.tar.gz bcm5719-llvm-5db24d7c2290f8b1eabb29ae6708d6ec34ebceaa.zip |
[NVPTX] Assign valid global names
PTX requires that identifiers consist only of [a-zA-Z0-9_$]. The
existing pass already ensured this for globals and this patch adds
the cleanup for functions with local linkage.
However, there was a different problem in the case of collisions
of the adjusted name: The ValueSymbolTable then automatically
appended ".N" with increasing Ns to get a unique name while helping
the ABI demangling. Special case this behavior to omit the dots and
append N directly. This will always give us legal names according
to the PTX requirements.
Differential Revision: https://reviews.llvm.org/D40573
llvm-svn: 319657
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions