This is an archive of the discontinued LLVM Phabricator instance.

[IntrinsicEmitter] Add overloaded type VecOfBitcastsToInt for SVE intrinsics
ClosedPublic

Authored by kmclaughlin on Sep 25 2019, 7:07 AM.

Details

Summary

This allows intrinsics such as the following to be defined:

  • declare <n x 4 x i32> @llvm.something.nxv4f32(<n x 4 x i32>, <n x 4 x i1>, <n x 4 x float>)

...where <n x 4 x i32> is derived from <n x 4 x float>, but
the element needs bitcasting to int.

Diff Detail

Event Timeline

kmclaughlin created this revision.Sep 25 2019, 7:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 25 2019, 7:07 AM
c-rhodes accepted this revision.Sep 30 2019, 8:04 AM

LGTM

Looks like a pretty straightforward change. Might be worth waiting a day or so before committing incase anyone else has any comments.

This revision is now accepted and ready to land.Sep 30 2019, 8:04 AM
This revision was automatically updated to reflect the committed changes.