mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +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:
parent
3c81367a5d
commit
127f0e810b
@ -84,7 +84,7 @@ bool GenericToNVVM::runOnModule(Module &M) {
|
||||
GlobalVariable *GV = I++;
|
||||
if (GV->getType()->getAddressSpace() == llvm::ADDRESS_SPACE_GENERIC &&
|
||||
!llvm::isTexture(*GV) && !llvm::isSurface(*GV) &&
|
||||
!GV->getName().startswith("llvm.")) {
|
||||
!llvm::isSampler(*GV) && !GV->getName().startswith("llvm.")) {
|
||||
GlobalVariable *NewGV = new GlobalVariable(
|
||||
M, GV->getType()->getElementType(), GV->isConstant(),
|
||||
GV->getLinkage(),
|
||||
|
Loading…
Reference in New Issue
Block a user