This is an archive of the discontinued LLVM Phabricator instance.

[ARM,MVE] Integer-type nitpicks in MVE intrinsics.
ClosedPublic

Authored by simon_tatham on Nov 4 2019, 1:50 AM.

Details

Summary

A few integer types in the ACLE definitions of MVE intrinsics are
given as 'int' or 'unsigned' instead of <stdint.h> fixed-size types
like uint32_t. Usually these are the ones where the size isn't that
important, such as immediate offsets in loads (which have a range
limited by the instruction encoding) or the carry flag in vadcq which
can only be 0 or 1 anyway.

With this change, <arm_mve.h> follows that exact type naming, so that
the function prototypes look identical to the ones in ACLE, instead of
replacing int and unsigned with int32_t and uint32_t.

Diff Detail

Event Timeline

simon_tatham created this revision.Nov 4 2019, 1:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2019, 1:50 AM
dmgreen added inline comments.Nov 4 2019, 4:19 AM
clang/utils/TableGen/MveEmitter.cpp
551

Can you explain this, is it related to something else?

Removed the asValue system, which (as you'd guessed) ought to have
been part of D69791.

dmgreen accepted this revision.Nov 4 2019, 8:24 AM

LGTM then.

This revision is now accepted and ready to land.Nov 4 2019, 8:24 AM
This revision was automatically updated to reflect the committed changes.