summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIInstrFormats.td
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2016-02-11 21:45:07 +0000
committerTom Stellard <thomas.stellard@amd.com>2016-02-11 21:45:07 +0000
commit1397d49ef5772833179e9edb53697c156e074dcc (patch)
tree2ca0f4291c75564ca551561dfc7ecb76f418d1ca /llvm/lib/Target/AMDGPU/SIInstrFormats.td
parentf9de0d6904cde91fb4b9c7701be2f907717f2c07 (diff)
downloadbcm5719-llvm-1397d49ef5772833179e9edb53697c156e074dcc.tar.gz
bcm5719-llvm-1397d49ef5772833179e9edb53697c156e074dcc.zip
AMDGPU/SI: Make sure MIMG descriptors and samplers stay in SGPRs
Summary: It's possible to have resource descriptors and samplers stored in VGPRs, either by a VMEM instruction or in the case of samplers, floating-point calculations. When this happens, we need to use v_readfirstlane to copy these values back to sgprs. Reviewers: mareko, arsenm Subscribers: arsenm, llvm-commits Differential Revision: http://reviews.llvm.org/D17102 llvm-svn: 260599
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInstrFormats.td')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInstrFormats.td1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInstrFormats.td b/llvm/lib/Target/AMDGPU/SIInstrFormats.td
index 08e9c16a7ed..a94212a665e 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrFormats.td
+++ b/llvm/lib/Target/AMDGPU/SIInstrFormats.td
@@ -690,5 +690,6 @@ class MIMG <bits<7> op, dag outs, dag ins, string asm, list<dag> pattern> :
let MIMG = 1;
let Uses = [EXEC];
+ let UseNamedOperandTable = 1;
let hasSideEffects = 0; // XXX ????
}
OpenPOWER on IntegriCloud