AMDGPU: Make getTgtMemIntrinsic table-driven for resource-based intrinsics
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Apr 2018 17:09:07 +0000 (17:09 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Apr 2018 17:09:07 +0000 (17:09 +0000)
commit5d0d30304c5f2305d8458625e5e46db6cc7f0a06
tree76d3d56a5a058a69dc9a7d3bd2a2d827cff5e45e
parent398c0b6701209c2c7fc980463c21456db2114971
AMDGPU: Make getTgtMemIntrinsic table-driven for resource-based intrinsics

Summary:
Avoids having to list all intrinsics manually.

This is in preparation for the new dimension-aware image intrinsics,
which I'd rather not have to list here by hand.

Change-Id: If7ced04998397ef68c4cb8f7de66b5050fb767e5

Reviewers: arsenm, rampitec, b-sumner

Subscribers: kzhuravl, wdng, mgorny, yaxunl, dstuttard, tpr, llvm-commits, t-tye

Differential Revision: https://reviews.llvm.org/D44937

llvm-svn: 328938
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.h
llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td [new file with mode: 0644]
llvm/lib/Target/AMDGPU/CMakeLists.txt
llvm/lib/Target/AMDGPU/SIISelLowering.cpp