]> granicus.if.org Git - llvm/commit
AMDGPU: Implement getTgtMemIntrinsic for images
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Dec 2017 17:18:14 +0000 (17:18 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 29 Dec 2017 17:18:14 +0000 (17:18 +0000)
commita6448ac97c5b18f940055501152a06fdfd875997
tree82f17c25a31a929f59e794434a6af3bf488c7783
parent8994bbee8a1344639b819a912564cbee62430af2
AMDGPU: Implement getTgtMemIntrinsic for images

Currently all images are lowered to have a single
image PseudoSourceValue. Image stores happen to have
overly strict mayLoad/mayStore/hasSideEffects flags
set on them, so this happens to work. When these
are fixed to be correct, the scheduler breaks
this because the identical PSVs are assumed to
be the same address. These need to be unique
to the image resource value.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@321555 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsAMDGPU.td
lib/Target/AMDGPU/SIISelLowering.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.h