clang/AMDGPU: Force disable block enqueue arguments for HIP
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 7 Jan 2023 18:06:52 +0000 (13:06 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 7 Jan 2023 18:39:05 +0000 (13:39 -0500)
commit6fe70cb465654eafafd272231e23762adeab4290
tree5657cbc68c201964623814f6119fba8594592619
parentb712aef5b37e4e98fcc7bd1a6cfc3bac2d7af0d0
clang/AMDGPU: Force disable block enqueue arguments for HIP

This is a dirty, dirty hack to workaround bot failures at
-O0. Currently these fields are only used by OpenCL features and
evidently the HIP runtime isn't expecting to see them in HIP
programs. The code objects should be language agnostic, so just force
optimize these out until the runtime is fixed.
clang/lib/CodeGen/TargetInfo.cpp
clang/test/CodeGenHIP/default-attributes.hip [new file with mode: 0644]