Displaying 3 results from an estimated 3 matches for "__builtin_annotate".
2008 Jun 28
1
[LLVMdev] Using annotation attributes
...ns array. It does not seem to be defined in
> the LLVM
> language reference, shouldn't it be? It's name suggests that it is a
> reserved
> variable name with a fixed type (similar to intrinsic functions?).
Yes, we should document it. It is a convention established by the
__builtin_annotate function in the c compilers. We should standardize
it and document it.
> Furthermore, it seems that the AnnotationManager that is currently
> implemented
> is capable of keeping a list of Annotations for any Annotatable
> (currently
> only Function). These annotations are kep...
2008 Jun 25
0
[LLVMdev] Using annotation attributes
Hi all,
I've also been developing an interest in using IR annotations for my compiler.
Some discussion with Bart turns out that he has implemented some code to parse
the llvm.globals.annotations array, but in no way integrated or reusable.
We've spent some thought about how this could be done properly, which I will
share here.
Firstly, however, I was wondering about the format of the
2008 Jun 05
5
[LLVMdev] Using annotation attributes
Hi,
I'm trying to annotate certain functions in C code, and do something with
these functions in my LLVM pass. I annotate the C code like this:
int __attribute__((annotate("annot"))) function() {
This nicely gets added to the LLVM bitcode in an
@llvm.global.annotations global. Now I had hoped that it'd be easy to extract
a list of functions annotated with my annotation