Page MenuHomePhabricator

[GlobalISel][NFC] Factor out common target code from GlobalISelEmitter tests
ClosedPublic

Authored by paquette on Aug 5 2019, 2:24 PM.

Details

Summary

Factor out commonly-used target code from the GlobalISelEmitter tests into a GlobalISelEmitterCommon.td file. This is still tested by the original GlobalISelEmitter.td test.

This reduces the amount of boilerplate code necessary for writing tests for the GlobalISelEmitter.

I don't have many strong opinions on how this is split up, so if there's a better way to do it, I'm happy to change it. I tried to keep it to things like types which people would expect to have by default.

Diff Detail

Repository
rL LLVM

Event Timeline

paquette created this revision.Aug 5 2019, 2:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2019, 2:24 PM
arsenm accepted this revision.Aug 12 2019, 2:50 PM

LGTM

This revision is now accepted and ready to land.Aug 12 2019, 2:50 PM
This revision was automatically updated to reflect the committed changes.