This is an archive of the discontinued LLVM Phabricator instance.

NeonEmitter: change Type representation. NFC.
ClosedPublic

Authored by t.p.northover on Nov 1 2019, 7:50 AM.

Details

Reviewers
efriedma
Summary

This has been separated off from D69618 to reduce clutter. Instead of using a sequence of bools to describe whether a type is floating, signed, ..., which can fairly easily end up in an inconsistent or otherwise meaningless state this switches to a single enum Kind. There should be no functional changes from this.

Diff Detail

Event Timeline

t.p.northover created this revision.Nov 1 2019, 7:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2019, 7:50 AM
Herald added a subscriber: mcrosier. · View Herald Transcript
efriedma accepted this revision.Nov 1 2019, 1:01 PM

I guess the extra checks are due to existing code "accidentally" doing the right thing?

Have you verified this is NFC in terms of the generated arm_neon.h etc?

LGTM

This revision is now accepted and ready to land.Nov 1 2019, 1:01 PM
t.p.northover closed this revision.Nov 6 2019, 2:02 AM

I guess the extra checks are due to existing code "accidentally" doing the right thing?

Yep, they were helpful while I was in the process of converting (in the end I went via AAAFloating enumerators to make sure all uses were flushed out). And yes, diff showed no change in clang-tblgen output.

Anyway, thanks, committed as 9577ee84e6.