Displaying 6 results from an estimated 6 matches for "annotationmanag".
Did you mean:
annotationmanager
2008 Jun 25
0
[LLVMdev] Using annotation attributes
...I was wondering about the format of the
llvm.globals.annotations 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?).
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 kept in memory only and really have
nothing to do at all with the annotations in the IR.
Still, it seems that using the AnnotationManager to make the IR...
2008 Jun 05
5
[LLVMdev] Using annotation attributes
...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 using
AnnotationManager::getID("annot")
and later on:
function->getAnnotation(AnnotID).
This does not seem to work, unfortunately. Is this supposed to work in this
way, or am I using the wrong functions? I could of course just try to
manually parse the @llvm.global.annotations constant, but that seems ra...
2008 Sep 13
1
[LLVMdev] Using annotation attributes
...e
> llvm.globals.annotations 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?).
>
> 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 kept in memory only and really
> have
> nothing to do at all with the annotations in the IR.
>
> Still, it seems tha...
2008 Jun 28
1
[LLVMdev] Using annotation attributes
...hat 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 kept in memory only and really
> have
> nothing to do at all with the annotations in the IR.
Yes, this is a really old me...
2008 Jun 05
0
[LLVMdev] Using annotation attributes
...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 using
>
> AnnotationManager::getID("annot")
> and later on:
> function->getAnnotation(AnnotID).
>
> This does not seem to work, unfortunately. Is this supposed to work in this
> way, or am I using the wrong functions? I could of course just try to
> manually parse the @llvm.global.annotations...
2013 Feb 27
3
[LLVMdev] llvm get annotations
Hello everyone !
I followed
http://stackoverflow.com/questions/4976298/modern-equivalent-of-llvm-annotationmanagerin
order to get annotations from my target bytecode. All the examples
that
I give in the following is related to the code from that link. I have
`__attribute__((annotate("DS"))) int f=0;` into the target C++ program and
the related IR code:
@.str = private unnamed_addr constant [3 x...