This is an archive of the discontinued LLVM Phabricator instance.

[SVE][CodeGen] Add new EVT/MVT getFixedSizeInBits() functions
ClosedPublic

Authored by david-arm on Oct 1 2020, 5:09 AM.

Details

Summary

When we know that a particular type is always going to be fixed
width we have so far been writing code like this:

getSizeInBits().getFixedSize()

Since we are doing this in quite a few places now it seems to make
sense to add a new helper function that allows us to replace
these calls with a single getFixedSizeInBits() call.

Diff Detail

Event Timeline

david-arm created this revision.Oct 1 2020, 5:09 AM
david-arm requested review of this revision.Oct 1 2020, 5:09 AM
efriedma accepted this revision.Oct 1 2020, 7:12 AM

LGTM, thanks

This revision is now accepted and ready to land.Oct 1 2020, 7:12 AM
This revision was landed with ongoing or failed builds.Oct 2 2020, 12:11 AM
This revision was automatically updated to reflect the committed changes.