AMDGPU: Move dot intrinsic patterns to instruction def
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 19 Feb 2020 15:42:31 +0000 (10:42 -0500)
committerMatt Arsenault <arsenm2@gmail.com>
Fri, 21 Feb 2020 18:35:40 +0000 (13:35 -0500)
commitdb06870dbd5e85acbd39bb8dc3b2e1c751904f86
treeda5c3153f970b57b3274e40b426d1ecb577cea29
parent4c1c9422a3adab64433b8fde31f1ac346459b491
AMDGPU: Move dot intrinsic patterns to instruction def

I tried to use some of the new tablegen features to avoid creating
different operand list permutations, but I still don't see a way to
programmatically build a source pattern dag.

Also add GlobalISel tests, which now all import successfully.

Some of the fneg fold tests are incorrect, which need to be fixed in a
future commit
llvm/lib/Target/AMDGPU/VOP3Instructions.td
llvm/lib/Target/AMDGPU/VOP3PInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.sdot2.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.sdot4.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.sdot8.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.udot2.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.udot4.ll [new file with mode: 0644]
llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.udot8.ll [new file with mode: 0644]