This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Use getNaturalPointeeTypeAlignment to get alignment for stores created for vector builtins.
ClosedPublic

Authored by craig.topper on Jul 23 2021, 9:43 PM.

Details

Summary

Instead of using scalar size divided by 8 for segment loads, get
the alignment from clang's type system.

Make vleff match for consistency.

Also replace uses of getPointerElementType() which will be removed as part of the OpaquePtr changes.

Diff Detail

Event Timeline

craig.topper created this revision.Jul 23 2021, 9:43 PM
craig.topper requested review of this revision.Jul 23 2021, 9:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 23 2021, 9:43 PM

Also remove calls to getPointerElementType which will be removed eventually.

craig.topper edited the summary of this revision. (Show Details)Jul 26 2021, 9:43 PM
This revision is now accepted and ready to land.Aug 11 2021, 11:54 PM
This revision was landed with ongoing or failed builds.Aug 12 2021, 10:05 AM
This revision was automatically updated to reflect the committed changes.