[GISel] Add RegState::Define to temporary defs in apply patterns (#77425)
commit06286a553280fc843d6f5df477a2c776aa2ece35
authorSergei Barannikov <barannikov88@gmail.com>
Tue, 9 Jan 2024 14:55:21 +0000 (9 17:55 +0300)
committerGitHub <noreply@github.com>
Tue, 9 Jan 2024 14:55:21 +0000 (9 17:55 +0300)
tree3403d87d8e2877519f358cb9a68dbcd0fa56a382
parenta2dba0c97756c65c7dd9d91bec2ceda80a933bb1
[GISel] Add RegState::Define to temporary defs in apply patterns (#77425)

Previously, registers created for temporary defs in apply patterns were
rendered as uses, resulting in machine verifier errors.
llvm/test/TableGen/GlobalISelCombinerEmitter/builtins/match-table-replacerreg.td
llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-operand-types.td
llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-temp-defs.td [new file with mode: 0644]
llvm/test/TableGen/GlobalISelCombinerEmitter/match-table-typeof.td
llvm/utils/TableGen/GlobalISelCombinerEmitter.cpp