This is an archive of the discontinued LLVM Phabricator instance.

[RISCV][NFC] Unify compatibility checks under one function
ClosedPublic

Authored by frasercrmck on May 26 2022, 7:23 AM.

Details

Summary

Split off from D125021.

We were duplicating logic across different phases. Since we want to
ensure a consistency of logic across phases for correctness, this patch
combines our multiple compatibility checks into one function to better
convey this.

Several methods were made const too.

Diff Detail

Event Timeline

frasercrmck created this revision.May 26 2022, 7:23 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2022, 7:23 AM
frasercrmck requested review of this revision.May 26 2022, 7:23 AM

upper case vtype -> VTYPE in comment

reames accepted this revision.May 26 2022, 10:09 AM

LGTM

This revision is now accepted and ready to land.May 26 2022, 10:09 AM
This revision was landed with ongoing or failed builds.May 27 2022, 3:32 AM
This revision was automatically updated to reflect the committed changes.