llvm.org GIT mirror llvm / ab7c0aa
[NVPTX] Variables that start with llvm. or nvvm. are reserved and should not be emitted git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211940 91177308-0d34-0410-b5e6-96231b3b80d8 Justin Holewinski 6 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
13501350 return;
13511351 }
13521352
1353 // Skip LLVM intrinsic global variables
1354 if (GVar->getName().startswith("llvm.") ||
1355 GVar->getName().startswith("nvvm."))
1356 return;
1357
13531358 const DataLayout *TD = TM.getDataLayout();
13541359
13551360 // GlobalVariables are always constant pointers themselves.