Type annotations in .ll

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