This is an archive of the discontinued LLVM Phabricator instance.

AArch64AsmParser: tablegen the isBranchTarget helper functions
ClosedPublic

Authored by SjoerdMeijer on Feb 20 2017, 12:59 AM.

Details

Summary

Use tablegen to autogenerate isBranchtarget helper functions. This is a cleanup that removes almost identical functions that differ only in a few constants.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Feb 20 2017, 12:59 AM
olista01 added inline comments.Feb 20 2017, 1:49 AM
lib/Target/AArch64/AArch64InstrFormats.td
279 ↗(On Diff #89082)

Instead of listing the minimum and maximum values, could these just be calculated from the bit-width in isBranchTarget?

Thanks for the suggestion: the lower/upper bounds are now also generated.

This revision is now accepted and ready to land.Feb 20 2017, 3:02 AM
This revision was automatically updated to reflect the committed changes.