diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-04-01 17:09:07 +0000 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-04-01 17:09:07 +0000 |
commit | 5d0d30304c5f2305d8458625e5e46db6cc7f0a06 (patch) | |
tree | 76d3d56a5a058a69dc9a7d3bd2a2d827cff5e45e /llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp | |
parent | 398c0b6701209c2c7fc980463c21456db2114971 (diff) | |
download | bcm5719-llvm-5d0d30304c5f2305d8458625e5e46db6cc7f0a06.tar.gz bcm5719-llvm-5d0d30304c5f2305d8458625e5e46db6cc7f0a06.zip |
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
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp index 75627c2ff68..cb2064cf19e 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUInstrInfo.cpp @@ -25,6 +25,13 @@ using namespace llvm; #define GET_INSTRINFO_CTOR_DTOR #include "AMDGPUGenInstrInfo.inc" +namespace llvm { +namespace AMDGPU { +#define GET_RSRCINTRINSIC_IMPL +#include "AMDGPUGenSearchableTables.inc" +} +} + // Pin the vtable to this file. void AMDGPUInstrInfo::anchor() {} |