OSDN Git Service

[AMDGPU] set read_only access qualifier for pointers
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 14 Apr 2017 19:11:40 +0000 (19:11 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 14 Apr 2017 19:11:40 +0000 (19:11 +0000)
commitd8c6515dbf89e68a8cd0cde9e8ca9d3584ca178a
tree498c877182e71e46ad862d6afb81805b5a541023
parentaa717883e8c384910cd0cf2515c62c48488cd02f
[AMDGPU] set read_only access qualifier for pointers

If a kernel's pointer argument is known to be readonly
set access qualifier accordingly. This allows RT not to
flush caches before dispatches.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/MCTargetDesc/AMDGPUCodeObjectMetadataStreamer.cpp
test/CodeGen/AMDGPU/code-object-metadata-deduce-ro-arg.ll [new file with mode: 0644]