[PATCH] D29883: NVPTX: Cleanup function names for PTX syntax
Jascha Wetzel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 13 00:57:23 PST 2017
jascha created this revision.
Cleanup local function names as is already done for GVs.
Fixes Bug 24731.
https://reviews.llvm.org/D29883
Files:
lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
Index: lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
===================================================================
--- lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
+++ lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
@@ -61,6 +61,13 @@
}
}
+ // Do the same for local function names.
+ for (Module::iterator F = M.begin(), Fend = M.end(); F != Fend; ++F) {
+ if (F->hasLocalLinkage()) {
+ F->setName(cleanUpName(F->getName()));
+ }
+ }
+
return true;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29883.88164.patch
Type: text/x-patch
Size: 495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170213/eb27ab0c/attachment.bin>
More information about the llvm-commits
mailing list