[llvm] r211940 - [NVPTX] Variables that start with llvm. or nvvm. are reserved and should not be emitted
Justin Holewinski
jholewinski at nvidia.com
Fri Jun 27 11:35:54 PDT 2014
Author: jholewinski
Date: Fri Jun 27 13:35:53 2014
New Revision: 211940
URL: http://llvm.org/viewvc/llvm-project?rev=211940&view=rev
Log:
[NVPTX] Variables that start with llvm. or nvvm. are reserved and should not be emitted
Modified:
llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp?rev=211940&r1=211939&r2=211940&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXAsmPrinter.cpp Fri Jun 27 13:35:53 2014
@@ -1351,6 +1351,11 @@ void NVPTXAsmPrinter::printModuleLevelGV
return;
}
+ // Skip LLVM intrinsic global variables
+ if (GVar->getName().startswith("llvm.") ||
+ GVar->getName().startswith("nvvm."))
+ return;
+
const DataLayout *TD = TM.getDataLayout();
// GlobalVariables are always constant pointers themselves.
More information about the llvm-commits
mailing list