[AMDGPU] Change llvm.amdgcn.image.bvh.intersect.ray to take vec3 args
authorJay Foad <jay.foad@amd.com>
Thu, 2 Dec 2021 12:26:59 +0000 (12:26 +0000)
committerJay Foad <jay.foad@amd.com>
Sat, 4 Dec 2021 10:32:11 +0000 (10:32 +0000)
commit2774bad1124215571ab154afcb5478c78cf46344
tree730b85f7ec8aa2d799919add293fce07892985a4
parentc8e84c7a5f38d46e97debba0eb1ae05f6a2fa39f
[AMDGPU] Change llvm.amdgcn.image.bvh.intersect.ray to take vec3 args

The ray_origin, ray_dir and ray_inv_dir arguments should all be vec3 to
match how the hardware instruction works.

Don't change the API of the corresponding OpenCL builtins.

Differential Revision: https://reviews.llvm.org/D115032
clang/lib/CodeGen/CGBuiltin.cpp
clang/test/CodeGenOpenCL/builtins-amdgcn-raytracing.cl
llvm/include/llvm/IR/IntrinsicsAMDGPU.td
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.intersect_ray.ll