[llvm-dev] Type annotations in .ll

Viktor Was BSc via llvm-dev llvm-dev at lists.llvm.org
Mon May 6 10:15:10 PDT 2019


Hello everyone,
how are type annotations represented in LLVM IR? Is this even supported?

I got a warning when I had it in front of 'struct' like so

'''
__attribute__((annotate("type_annot")))
struct MyStruct
{
//...
}
'''
It suggested to put the annotation after 'struct' like so
'''
struct __attribute__((annotate("type_annot"))) MyStruct
{
//...
}
'''
Either way did not create any constant string with the annotation or uses. 

Kind regards,
Viktor 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190506/1f00ee71/attachment.html>


More information about the llvm-dev mailing list