search for: annotations

Displaying 20 results from an estimated 3603 matches for "annotations".

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 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...
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 a...
2005 Nov 27
1
segfault on write.dcf with gzfile connection
I'm seeing a segfault on x86_64 Linux with the following code: desc = read.dcf("BAD") con = gzfile("test.gz", "wt") write.dcf(desc, file=con) close(con) where BAD has a long field (see below for example). The crash happens inside dummy_vfprintf. I think the issue is that the va_list ap is modified by the first vsnprintf call
2013 Jun 17
2
[LLVMdev] vmkit java annotations
Hello everyone, I am able to work very well with annotations in C/C++, by using __attribute__((annotate("MYANNOTATION"))) static int a; . Inside the LLVM bytecode I have @llvm.global.annotations and @llvm.var.annotation. However, I was trying to test annotations also in Java, with VMKit. These are the commands that I run: javac -Xlint -g -O Main....
2013 Jun 17
2
[LLVMdev] vmkit java annotations
...way of annotating variables in Java Code, so I can see them into LLVM bytecode? Thank you ! On Mon, Jun 17, 2013 at 3:54 PM, Harris BAKIRAS <h.bakiras at gmail.com> wrote: > Hello Alexandru, > > No you did nothing wrong. > > We are using our own data structure to describe annotations in J3. So it > is normal that you can not see your Java annotations inside the LLVM > bytecode produced. > If I remember well, our implementation of annotations do not rely on LLVM > annotations. > > Regards, > > Harris Bakiras > > On 06/17/2013 02:19 PM, Alexandru Ion...
2013 Jun 17
0
[LLVMdev] vmkit java annotations
Hello Alexandru, No you did nothing wrong. We are using our own data structure to describe annotations in J3. So it is normal that you can not see your Java annotations inside the LLVM bytecode produced. If I remember well, our implementation of annotations do not rely on LLVM annotations. Regards, Harris Bakiras On 06/17/2013 02:19 PM, Alexandru Ionut Diaconescu wrote: > Hello everyone, &g...
2020 Nov 09
2
RFC: Combining Annotation Metadata and Remarks
...ul to make sure the system is flexible enough. > We could also think about a user facing version of this while we are at it ;) > Do you mean providing a way for users to add their own annotation to say C/C++ code? The initial patch contains a Annotation2Metadata pass, which converts Clang annotations (` __attribute__((annotate("_name”))` ) to `!annotation` metadata. This allows users to use something like the snippet below, to annotate all instructions in a function by piggybacking on Clang’s annotate attribute. void __attribute__((annotate("__overflow_rt_check"))) custom_overf...
2009 Feb 25
1
Unexpected side effect of the ":::" operator on the value of isGeneric
Hi, when running the following on a fresh R, library("IRanges") annotation showMethods("annotation") Biobase:::annotation showMethods("annotation") I get (see the "^^^^^" marked output at the bottom): > library("IRanges") Carico il pacchetto richiesto: 'IRanges' The following object(s) are masked from package:base :
2013 Jun 17
0
[LLVMdev] vmkit java annotations
...> > Thank you ! > > > On Mon, Jun 17, 2013 at 3:54 PM, Harris BAKIRAS <h.bakiras at gmail.com > <mailto:h.bakiras at gmail.com>> wrote: > > Hello Alexandru, > > No you did nothing wrong. > > We are using our own data structure to describe annotations in J3. > So it is normal that you can not see your Java annotations inside > the LLVM bytecode produced. > If I remember well, our implementation of annotations do not rely > on LLVM annotations. > > Regards, > > Harris Bakiras > > On 06/17/...
2008 Jun 28
1
[LLVMdev] Using annotation attributes
On Jun 25, 2008, at 6:33 AM, Matthijs Kooijman wrote: > Hi all, Howdy Matthijs, > 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 >...
2008 Sep 13
1
[LLVMdev] Using annotation attributes
Hi all I have a project where LLVM annotations could be very useful. My current understanding of LLVM in general is still limited, hence a nice interface to annotations or sample code that uses annotations would help me to get started. I was wondering what happened to the proposal for a better interface to handling of annotations, whic...
2006 Feb 24
5
[LLVMdev] Re: gcc like attributes and annotations
...currently possible. Okay so I am on quite the opposite attitude than the LLVM team towards that issue :-) > > At one point in time, Value was annotatable. The problem with this was > two fold: > > 1. This bloat every value in the system, by adding an extra pointer. > 2. These annotations would get stale and not be updated correctly. > > The problem is basically that adding annotations really amounts to > extending the LLVM IR, and making it look like something simple doesn't > make it easier to deal with. For example, if you add an "I'm special" >...
2012 Oct 12
2
[LLVMdev] [Proposal] Annotated assembly output
...ruction text. For clients like disassemblers, list file generators, and pretty-printers, more is necessary than the raw instructions and the ability to print them. The intent is for the vast majority of the new functionality to not require new APIS, but to be in the assembly text itself via markup annotations. The markup is simple enough in syntax to be robust even in the case of version mismatches between consumers and producers. That is, the syntax generally does not carry semantics beyond "this text has an annotation," so consumers can simply ignore annotations they do not understand or do...
2006 Feb 24
2
[LLVMdev] gcc like attributes and annotations
...a symbolic type which could look like: { ("x",int) } One could use the DEF/USE and operand information in the byte code to know which symbolic field was accessed for instance through getelementptr. I don't know how you feel about that, but I there would be many circumstances where Annotations could help getting more information out of the bytecode. thanks in advance -- Jakob
2006 Feb 24
0
[LLVMdev] gcc like attributes and annotations
...alloca, malloc, .. > would be nice if they could be Annotable and so one could add symbolic > information to the type beeing used. At one point in time, Value was annotatable. The problem with this was two fold: 1. This bloat every value in the system, by adding an extra pointer. 2. These annotations would get stale and not be updated correctly. The problem is basically that adding annotations really amounts to extending the LLVM IR, and making it look like something simple doesn't make it easier to deal with. For example, if you add an "I'm special" attribute to an instr...
2023 Sep 29
1
[PATCH 0/9] drm: Annotate structs with __counted_by
On Fri, 22 Sep 2023 10:32:05 -0700, Kees Cook wrote: > This is a batch of patches touching drm for preparing for the coming > implementation by GCC and Clang of the __counted_by attribute. Flexible > array members annotated with __counted_by can have their accesses > bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array > indexing) and CONFIG_FORTIFY_SOURCE (for
2023 Sep 29
1
[PATCH 0/9] drm: Annotate structs with __counted_by
On Fri, 22 Sep 2023 10:32:05 -0700, Kees Cook wrote: > This is a batch of patches touching drm for preparing for the coming > implementation by GCC and Clang of the __counted_by attribute. Flexible > array members annotated with __counted_by can have their accesses > bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array > indexing) and CONFIG_FORTIFY_SOURCE (for
2020 Nov 10
1
RFC: Combining Annotation Metadata and Remarks
...> >>> We could also think about a user facing version of this while we are at it ;) >>> >> Do you mean providing a way for users to add their own annotation to say C/C++ code? >> >> The initial patch contains a Annotation2Metadata pass, which converts Clang annotations (` __attribute__((annotate("_name”))` ) to `!annotation` metadata. This allows users to use something like the snippet below, to annotate all instructions in a function by piggybacking on Clang’s annotate attribute. >> >> void __attribute__((annotate("__overflow_rt_check&quo...
2023 Sep 29
1
[PATCH 0/9] drm: Annotate structs with __counted_by
On Fri, 22 Sep 2023 10:32:05 -0700, Kees Cook wrote: > This is a batch of patches touching drm for preparing for the coming > implementation by GCC and Clang of the __counted_by attribute. Flexible > array members annotated with __counted_by can have their accesses > bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array > indexing) and CONFIG_FORTIFY_SOURCE (for
2011 Sep 22
1
[LLVMdev] new annotations in IR?
...evel? What classes are responsible > for > > their manipulation? I assumed it would be part of Value, or something > common > > like it, but I do not see any mentions of Annotation or Attribute. > > > > Thank you > > AFAIK, there is no specific code to manipulate annotations. You could > write an analysis pass to process & use them though, that shouldn't > require a lot of work. > > -- > Julien Lerouge > PGP Key Id: 0xB1964A62 > PGP Fingerprint: 392D 4BAD DB8B CE7F 4E5F FA3C 62DB 4AA7 B196 4A62 > PGP Public Key from: keyserver.pgp.com &g...