In C/C++, we can have attribute annotation like below:
__attribute__((annotate("fff"))) void foo() {}
The annotation will be stored into @llvm.global.annotations in the IR. I'm currently doing analysis on LLVM IR, relying on the annotations to have some extra information.
Is there a way to do similar annotations in Rust and get it from the generated LLVM IR?
Any help is appreciated! Thanks!