This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel]: Add a getConstantIntVRegVal utility
ClosedPublic

Authored by Petar.Avramovic on Apr 1 2021, 8:02 AM.

Details

Summary

Returns ConstantInt from G_CONSTANT instruction given its def register.

Diff Detail

Event Timeline

Petar.Avramovic created this revision.Apr 1 2021, 8:02 AM
Petar.Avramovic requested review of this revision.Apr 1 2021, 8:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2021, 8:02 AM
arsenm accepted this revision.Apr 1 2021, 12:53 PM

LGTM, although we have a few too many constant lookup functions at this point

This revision is now accepted and ready to land.Apr 1 2021, 12:53 PM
This revision was automatically updated to reflect the committed changes.