mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
[NVPTX] Do not process samplers in GenericToNVVM
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211944 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -84,7 +84,7 @@ bool GenericToNVVM::runOnModule(Module &M) {
|
|||||||
GlobalVariable *GV = I++;
|
GlobalVariable *GV = I++;
|
||||||
if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC &&
|
if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC &&
|
||||||
!llvm::isTexture(*GV) && !llvm::isSurface(*GV) &&
|
!llvm::isTexture(*GV) && !llvm::isSurface(*GV) &&
|
||||||
!GV->getName().startswith("llvm.")) {
|
!llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) {
|
||||||
GlobalVariable *NewGV = new GlobalVariable(
|
GlobalVariable *NewGV = new GlobalVariable(
|
||||||
M, GV->getType()->getElementType(), GV->isConstant(),
|
M, GV->getType()->getElementType(), GV->isConstant(),
|
||||||
GV->getLinkage(),
|
GV->getLinkage(),
|
||||||
|
Reference in New Issue
Block a user