<div dir="auto">Hello everyone,<br></div>
<div dir="auto">how are type annotations represented in LLVM IR? Is this even supported?<br><br></div>
<div dir="auto">I got a warning when I had it in front of 'struct' like so<br><br></div>
<div dir="auto">'''<br></div>
<div dir="auto">__attribute__((annotate("type_annot")))<br></div>
<div dir="auto">struct MyStruct<br></div>
<div dir="auto">{<br></div>
<div dir="auto">//...<br></div>
<div dir="auto">}<br></div>
<div dir="auto">'''<br></div>
<div dir="auto">It suggested to put the annotation after 'struct' like so<br></div>
<div dir="auto">'''<br></div>
<div dir="auto">struct __attribute__((annotate("type_annot"))) MyStruct<br></div>
<div dir="auto">{<br></div>
<div dir="auto">//...<br></div>
<div dir="auto">}<br></div>
<div dir="auto">'''<br></div>
<div dir="auto">Either way did not create any constant string with the annotation or uses. <br><br></div>
<div dir="auto">Kind regards,<br></div>
<div dir="auto">Viktor </div>