Displaying 2 results from an estimated 2 matches for "namedmetadataattr".
2016 Mar 30
2
[PATCH/DRAFT] Embed metadata into object file
...t 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.extra_section clang.analysis "Information"
The clang CodeGen then generates a named metadata node on the
llvm::Module level:
!llvm.extra_sections = {!0}
!0 = !{!"clang.analysis", !"Information"}
The attached patch, then takes all key-value pairs...
2016 Mar 30
1
[cfe-dev] [PATCH/DRAFT] Embed metadata into object file
...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.extra_section clang.analysis "Information"
>
> The clang CodeGen then generates a named metadata node on the
> llvm::Module level:
>
> !llvm.extra_sections = {!0}
> !0 = !{!"clang.analysis", !"Information"}
>
> The attached...