[AMDGPU] Move V_FMA_MIX pattern matching into tablegen. NFC
authorJustin Bogner <mail@justinbogner.com>
Thu, 23 Feb 2023 01:45:58 +0000 (17:45 -0800)
committerJustin Bogner <mail@justinbogner.com>
Thu, 23 Feb 2023 18:23:34 +0000 (10:23 -0800)
commitc083c8974400bcc665d7736cd0e2b653180026ff
treec5dc6b99c3d9f04087eeefe1d00108b19bb05b10
parenta628ca4925f7249b4fbd3e932c9627b12e2770dd
[AMDGPU] Move V_FMA_MIX pattern matching into tablegen. NFC

The matching for V_FMA_MIX was partially implemented with a C++
matcher (for fmas with 32 bit results and 16 bit inputs) and partially
in tablegen (for fmas with 16 bit results). Move the C++ matcher logic
into tablegen to make this more consistent and so we can remove the
duplication between SDAG and GISel.

Differential Revision: https://reviews.llvm.org/D144612
llvm/lib/Target/AMDGPU/AMDGPUGISel.td
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.h
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
llvm/lib/Target/AMDGPU/SIInstrInfo.td
llvm/lib/Target/AMDGPU/VOP3PInstructions.td