[TableGen][GlobalISel] Support EXTRACT_SUBREGs for ComplexPattern suboperands.
authorIvan Kosarev <ivan.kosarev@amd.com>
Mon, 27 Mar 2023 10:37:16 +0000 (11:37 +0100)
committerIvan Kosarev <ivan.kosarev@amd.com>
Mon, 27 Mar 2023 11:10:13 +0000 (12:10 +0100)
commitc3ee525e0295e8dbea70613e409b6a6ff14981f0
tree77065c0170213a9a8ca835beaa43b8db858f2254
parentad09cd3f0dad5d34b803c85c94c048a2f6a89d0d
[TableGen][GlobalISel] Support EXTRACT_SUBREGs for ComplexPattern suboperands.

This makes it possible to write GlobalISel patterns generating
EXTRACT_SUBREG instructions applied to suboperands of ComplexPattern
operands. Currently, TableGen complains that such operands are not
declared in matcher.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D146800
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelector.h
llvm/include/llvm/CodeGen/GlobalISel/InstructionSelectorImpl.h
llvm/test/TableGen/GlobalISelEmitterSubreg.td
llvm/utils/TableGen/GlobalISelEmitter.cpp