Displaying 2 results from an estimated 2 matches for "namedmetadatastringattr".
2016 Mar 30
2
[PATCH/DRAFT] Embed metadata into object file
...e in the generated
object file. So, I had to solve the question: how do I smuggle some
metadata on the module level, from the frontend to the generated object
file (in an hopefully sane and reusable manner).
So, the solution I thought about was the following. The gathered
information is but into a NamedMetadataStringAttr and attached to the
TranslationUnitDecl. This would be, as far as I can see, the first
annotation on the TranslationUnit level. Attributes seem to me the best
solution at that point, since there is already a good infrastructure in
clang.
TranslationUnitDecl
| NamedMetadataAttr implicit llvm....
2016 Mar 30
1
[cfe-dev] [PATCH/DRAFT] Embed metadata into object file
...file. So, I had to solve the question: how do I smuggle some
> metadata on the module level, from the frontend to the generated object
> file (in an hopefully sane and reusable manner).
>
> So, the solution I thought about was the following. The gathered
> information is but into a NamedMetadataStringAttr and attached to the
> TranslationUnitDecl. This would be, as far as I can see, the first
> annotation on the TranslationUnit level. Attributes seem to me the best
> solution at that point, since there is already a good infrastructure in
> clang.
>
> TranslationUnitDecl
> |...