[PATCH] D48486: AMDGPU: Respect align argument parameter

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 22 07:49:43 PDT 2018


arsenm created this revision.
arsenm added reviewers: kzhuravl, scott.linder.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng.

This should avoid relying on the pointee type
to get the alignment, particularly since pointee
types are supposed to be removed at some point.

Also fixes not getting the alignment for unsized types.


https://reviews.llvm.org/D48486

Files:
  lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.cpp
  lib/Target/AMDGPU/MCTargetDesc/AMDGPUHSAMetadataStreamer.h
  test/CodeGen/AMDGPU/hsa-metadata-from-llvm-ir-full.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48486.152477.patch
Type: text/x-patch
Size: 9437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180622/665d4ec9/attachment.bin>


More information about the llvm-commits mailing list