This is an archive of the discontinued LLVM Phabricator instance.

[AArch64][SVE] CodeGen of ACLE Builtin Types
ClosedPublic

Authored by sdesmalen on Feb 17 2020, 8:55 AM.

Details

Summary

This patch adds codegen support for the ACLE builtin types added in:

https://reviews.llvm.org/D62960

so that the ACLE builtin types are emitted as corresponding scalable
vector types in LLVM.

Diff Detail

Event Timeline

sdesmalen created this revision.Feb 17 2020, 8:55 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 17 2020, 8:55 AM
efriedma added inline comments.Feb 17 2020, 11:43 AM
clang/lib/CodeGen/CodeGenTypes.cpp
551

Is there a reason to make getSVEType a separate function, as opposed to just writing out the cases inline?

Also, we can probably get rid of the "cannot yet generate code for SVE type" error?

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
230 ↗(On Diff #244987)

Please submit this separately.

sdesmalen updated this revision to Diff 245127.Feb 18 2020, 4:53 AM
  • Inlined function into switch statement
  • Removed changes to IRTranslator.cpp from this patch.
This revision is now accepted and ready to land.Feb 18 2020, 2:53 PM
This revision was automatically updated to reflect the committed changes.