[PATCH] D42168: [OpenMP] Generate unique name for offloading entries

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 17 09:21:07 PST 2018


ABataev added a comment.

In https://reviews.llvm.org/D42168#978689, @Hahnfeld wrote:

> In https://reviews.llvm.org/D42168#978634, @ABataev wrote:
>
> > 1. Please, mark the record as packed.
>
>
> Where and how do I need to do this? I found that `PackedAttr` is checked on `FieldDecl`s but I'm not sure if we go through that code path and how I could add it...


I think it is applied to structure. You can do it in `CGOpenMPRuntime::getTgtOffloadEntryQTy`, after the `RD->completeDefinition();` statement. Use `RD->addAttr(PackedAttr::CreateImplicit(C));`


Repository:
  rC Clang

https://reviews.llvm.org/D42168





More information about the cfe-commits mailing list