yaxunl added a comment.

In D55067#1320691 <https://reviews.llvm.org/D55067#1320691>, @arsenm wrote:

> I think if we can just declare something simple to follow that doesn't depend 
> on the IR type alignment, we could pack any basic type and align any 
> aggregates to 4


From the user point of view, I don't think it is a good idea to let the user 
calculate the offset and pass it to hipSetupArgument, especially if we want to 
have some specific alignment rules for amdgpu backend. We should just drop the 
offset parameter from hipSetupArgument and let the runtime figure out the 
offset based on device code metadata. This will always work no matter how 
backend changes the way to layout the kernel arguments.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55067/new/

https://reviews.llvm.org/D55067



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to