This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] AArch64AsmParser clean up of isImmediate functions. NFC
ClosedPublic

Authored by SjoerdMeijer on Feb 14 2017, 5:58 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

SjoerdMeijer created this revision.Feb 14 2017, 5:58 AM
olista01 added inline comments.Feb 14 2017, 6:56 AM
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
540 ↗(On Diff #88362)

I think it might be better to write this as a templated function, like we currently do for isUImm12Offset. That way, we don't have to write all of the trivial variations in this file at all.

Thanks for reviewing and the suggestions! The isImm helper functions are now tablegen'ed, so we can get rid of all the hand-written variants.

This revision is now accepted and ready to land.Feb 16 2017, 5:07 AM
This revision was automatically updated to reflect the committed changes.