R600: Add new intrinsic to read work dimensions
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 14 Oct 2014 18:52:07 +0000 (18:52 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 14 Oct 2014 18:52:07 +0000 (18:52 +0000)
commit6a529850f316e1848dcb672585cea9714bcc2683
tree607f5a8d157f61f1229c001c4c57b226010871c6
parent787e3ca6a40d8f23383abac48b4d8a1416573627
R600: Add new intrinsic to read work dimensions

v2: Add SI lowering
    Add test

v3: Place work dimensions after the kernel arguments.
v4: Calculate offset while lowering arguments
v5: rebase
v6: change prefix to AMDGPU

Reviewed-by: Tom Stellard <tom@stellard.net>
Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219705 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/IntrinsicsR600.td
lib/Target/R600/AMDGPUMachineFunction.h
lib/Target/R600/R600ISelLowering.cpp
lib/Target/R600/SIISelLowering.cpp
test/CodeGen/R600/work-item-intrinsics.ll