InferAddressSpaces: Convert tests to opaque pointers
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Nov 2022 01:11:40 +0000 (20:11 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 28 Nov 2022 01:26:16 +0000 (20:26 -0500)
commita982f095677cf1834d981e92efdddd0b36accd67
tree676f728956c85c126ecdbff24344a7fcbe763b84
parentc33511c8df54265f5c540c0d8605f2f6f35ee6cd
InferAddressSpaces: Convert tests to opaque pointers

Had constantexprs be mangled by the opaquify script; had to update
those lines manually:
  NVPTX/bug31948.ll
  AMDGPU/old-pass-regressions.ll
  AMDGPU/old-pass-regressions-inseltpoison.ll
  AMDGPU/infer-address-space.ll

Required re-reunning update_test_checks:
  AMDGPU/redundant-addrspacecast.ll

In AMDGPU/insert-pos-assert.ll, bitcast_insert_pos_assert_2 deleted a
getelementptr of 0 which I'm guessing was relevant. Replaced with an
offset 1 GEP to ensure another addrspacecast is inserted.

AMDGPU/infer-getelementptr.ll had one case improve by introducing an
inbounds.
28 files changed:
llvm/test/Transforms/InferAddressSpaces/AMDGPU/address-space-id-funcs.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/assumed-addrspace.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/basic.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/builtin-assumed-addrspace.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/debug-info.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/flat_atomic.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/icmp.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/infer-address-space.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/infer-addrspacecast.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/infer-getelementptr.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/insert-pos-assert.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/intrinsics.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/issue53665.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/mem-intrinsics.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/no-flat-addrspace.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/noop-ptrint-pair.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/old-pass-regressions-inseltpoison.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/old-pass-regressions.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/ptrmask.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/redundant-addrspacecast.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/select.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/self-phi.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/unreachable-code-assert.ll
llvm/test/Transforms/InferAddressSpaces/AMDGPU/volatile.ll
llvm/test/Transforms/InferAddressSpaces/NVPTX/bug31948.ll
llvm/test/Transforms/InferAddressSpaces/NVPTX/builtin-assumed-addrspace.ll
llvm/test/Transforms/InferAddressSpaces/NVPTX/clone_constexpr.ll
llvm/test/Transforms/InferAddressSpaces/X86/noop-ptrint-pair.ll