summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
diff options
context:
space:
mode:
authorDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>2018-02-05 12:45:43 +0000
committerDmitry Preobrazhensky <dmitry.preobrazhensky@amd.com>2018-02-05 12:45:43 +0000
commite3271aee447f510e89bab0c599b149b4085b325e (patch)
treea30e74b6927b7e251abbc11d204ac84b04573198 /llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
parent5bc157443e02d6288ff8ff1162372a3b6e6a2b03 (diff)
downloadbcm5719-llvm-e3271aee447f510e89bab0c599b149b4085b325e.tar.gz
bcm5719-llvm-e3271aee447f510e89bab0c599b149b4085b325e.zip
[AMDGPU][MC] Added validation of d16 and r128 modifiers of MIMG opcodes
See bugs 36094, 36095: https://bugs.llvm.org/show_bug.cgi?id=36094 https://bugs.llvm.org/show_bug.cgi?id=36095 Differential Revision: https://reviews.llvm.org/D42692 Reviewers: vpykhtin, artem.tamazov, arsenm llvm-svn: 324231
Diffstat (limited to 'llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h')
-rw-r--r--llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
index 7745af1c45c..9e143aa7cf9 100644
--- a/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
+++ b/llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
@@ -285,6 +285,8 @@ inline bool isKernel(CallingConv::ID CC) {
bool hasXNACK(const MCSubtargetInfo &STI);
+bool hasMIMG_R128(const MCSubtargetInfo &STI);
+
bool isSI(const MCSubtargetInfo &STI);
bool isCI(const MCSubtargetInfo &STI);
bool isVI(const MCSubtargetInfo &STI);
OpenPOWER on IntegriCloud