R600/SI: add sample and image intrinsics exposing all instruction fields
authorMarek Olsak <marek.olsak@amd.com>
Fri, 11 Jul 2014 17:11:46 +0000 (17:11 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Fri, 11 Jul 2014 17:11:46 +0000 (17:11 +0000)
commit5a35fdcafbe570b4f7ba388171cfa85b257e90f9
treee4b8a133b6f42305baf3362d02643ed8e027fc3f
parent4071d6f58baf22a4be01866c5c664c8e260b7e03
R600/SI: add sample and image intrinsics exposing all instruction fields

We need the intrinsics with offsets, so why not just add them all.
The R128 parameter will also be useful for reducing SGPR usage.
GL_ARB_image_load_store also adds some image GLSL modifiers like "coherent",
so Mesa will probably translate those to slc, glc, etc.

When LLVM 3.5 is released, I'll switch Mesa to these new intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212830 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/SIInstructions.td
lib/Target/R600/SIIntrinsics.td
test/CodeGen/R600/llvm.SI.image.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.SI.image.sample.ll [new file with mode: 0644]
test/CodeGen/R600/llvm.SI.image.sample.o.ll [new file with mode: 0644]