TableGen/GlobalISel: Handle default operands that are used
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 22 Oct 2019 04:39:42 +0000 (21:39 -0700)
committerMatt Arsenault <arsenm2@gmail.com>
Mon, 6 Jan 2020 23:26:42 +0000 (18:26 -0500)
commit26f714ff43e3498ae2528ad8c9875de77a529472
tree34d6d09c83117014e98cca48e8311bf8639d1801
parentf3de8ab5ccedefb3165dae2511650d6a60e905cf
TableGen/GlobalISel: Handle default operands that are used

Copy the logic from the existing handling in the DAG matcher emittter.

This will enable some AMDGPU pattern cleanups without breaking
GlobalISel tests, and eventually handle importing more patterns.

The test is a bit annoying since the sections seem to randomly sort
themselves if anything else is added in the future.
llvm/test/TableGen/DefaultOpsGlobalISel.td [new file with mode: 0644]
llvm/utils/TableGen/GlobalISelEmitter.cpp