mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 05:12:20 +00:00
[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
This commit is contained in:
parent
cb8f98382b
commit
ab7c0aa662
@ -1351,6 +1351,11 @@ void NVPTXAsmPrinter::printModuleLevelGV(const GlobalVariable *GVar,
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user