This is an archive of the discontinued LLVM Phabricator instance.

TableGen/GlobalISel: Handle default operands that are used
ClosedPublic

Authored by arsenm on Dec 31 2019, 10:02 AM.

Details

Summary

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.

Diff Detail

Event Timeline

arsenm created this revision.Dec 31 2019, 10:02 AM
paquette accepted this revision.Jan 6 2020, 2:05 PM

LGTM

This revision is now accepted and ready to land.Jan 6 2020, 2:05 PM
arsenm closed this revision.Jan 6 2020, 2:56 PM

b6385be72888e2752252aef3c0006a7cd22ca852