[NVPTX] Remove image/sampler special case in call lowering
authorNikita Popov <npopov@redhat.com>
Tue, 8 Feb 2022 11:20:08 +0000 (12:20 +0100)
committerNikita Popov <npopov@redhat.com>
Wed, 9 Feb 2022 08:40:27 +0000 (09:40 +0100)
commitff0b391600c77ca05a262bcca9e3d26aa333cfd0
treec6f38e13faa2030d81117626b5550aacb7958693
parent69c3309d4545cd729c41b102303686e19c92f55c
[NVPTX] Remove image/sampler special case in call lowering

I suspect that this is dead code. There is no test coverage for
this special case, and the struct type names this checks against
don't seem to match what OpenCL actually generates (which would be
%opencl.sampler_t rather than %struct._sampler_t for example).

Motivation for this change is that this code is incompatible with
opaque pointers -- simply deleting it is the simplest way of
making it compatible :)

Differential Revision: https://reviews.llvm.org/D119229
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp