This is an archive of the discontinued LLVM Phabricator instance.

GlobalISel: Directly expose getDefSrcRegIgnoringCopies utility
ClosedPublic

Authored by arsenm on Nov 11 2020, 7:26 AM.

Details

Summary

It's useful to get both the instruction and register at the same time.

Diff Detail

Event Timeline

arsenm created this revision.Nov 11 2020, 7:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 11 2020, 7:26 AM
arsenm requested review of this revision.Nov 11 2020, 7:26 AM
paquette accepted this revision.Nov 11 2020, 9:12 AM

LGTM with documentation nit

llvm/include/llvm/CodeGen/GlobalISel/Utils.h
163

Can you document CopyOnly?

This revision is now accepted and ready to land.Nov 11 2020, 9:12 AM
arsenm closed this revision.Nov 13 2020, 8:07 AM
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
163

This actually only exists in a future patch I haven't posted, so I've dropped the parameter