AMDGPU: Add pass to lower OpenCL image and sampler arguments.
authorTom Stellard <thomas.stellard@amd.com>
Fri, 7 Aug 2015 23:19:30 +0000 (23:19 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Fri, 7 Aug 2015 23:19:30 +0000 (23:19 +0000)
commit945ad7d241ab24e92e8315ac3906b0a52a5d5b0d
treea0a2b11d42f45fe5710641e38041cf1008af38bb
parent99c91ebb8139fba8f3c03d2a9d43a9452fbe21d1
AMDGPU: Add pass to lower OpenCL image and sampler arguments.

The pass adds new kernel arguments for image attributes, and
resolves calls to dummy attribute and resource id getter functions.

Patch by: Zoltan Gilian

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244372 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPU.h
lib/Target/AMDGPU/AMDGPUOpenCLImageTypeLoweringPass.cpp [new file with mode: 0644]
lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
lib/Target/AMDGPU/CMakeLists.txt
test/CodeGen/AMDGPU/image-attributes.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/image-resource-id.ll [new file with mode: 0644]
test/CodeGen/AMDGPU/sampler-resource-id.ll [new file with mode: 0644]