search for: lookupannot

Displaying 5 results from an estimated 5 matches for "lookupannot".

2006 Feb 25
3
[LLVMdev] Re: gcc like attributes and annotations
...oo. The lookup mechanism could lookup by anything of the tripple: - Target Value - AnnotationType - Name NULL values are wildcards. So you could say: Give me all annotations for a Value* /// Function local annotations Value* v = ... vector< const Annotation *> &ans = curFunction->lookupAnnotation( v, NULL, NULL); Or based on a specific type: /// Module wide annoations AnnotationType *type = ... Value< const Annotation *> &ans = module->lookupAnnotation( v, type, NULL ); This just random thought though. > >>>As a historical curiosity, Function still needs t...
2006 Feb 25
0
[LLVMdev] Re: gcc like attributes and annotations
...pple: > - Target Value > - AnnotationType > - Name > > NULL values are wildcards. > > So you could say: > > Give me all annotations for a Value* > > /// Function local annotations > Value* v = ... > vector< const Annotation *> &ans = curFunction->lookupAnnotation( v, > NULL, NULL); > > Or based on a specific type: > > /// Module wide annoations > AnnotationType *type = ... > Value< const Annotation *> &ans = module->lookupAnnotation( v, type, NULL ); > > This just random thought though. > > > > >&g...
2006 Feb 24
0
[LLVMdev] Re: gcc like attributes and annotations
Hi Jakob, I have some thoughts on this too .. On Fri, 2006-02-24 at 19:56 +0100, Jakob Praher wrote: > I get you 100 % here. But as you say later in the mail, many information > is done by some runtime std::map<Value*,foo> stuff. Which is really > handy at runtime, but I *had* serialization in mind when I was thinking > about Annotations. I see annotations as a way to serialize
2006 Feb 26
1
[LLVMdev] Re: gcc like attributes and annotations
...tationType >>- Name >> >>NULL values are wildcards. >> >>So you could say: >> >>Give me all annotations for a Value* >> >>/// Function local annotations >>Value* v = ... >>vector< const Annotation *> &ans = curFunction->lookupAnnotation( v, >>NULL, NULL); >> >>Or based on a specific type: >> >>/// Module wide annoations >>AnnotationType *type = ... >>Value< const Annotation *> &ans = module->lookupAnnotation( v, type, NULL ); >> >>This just random thought thou...
2006 Feb 24
5
[LLVMdev] Re: gcc like attributes and annotations
hi Chris! thanks for your reply. First of all I did not know about the history with the Annotation stuff. Annotable for me was a way how one could realize this things. So as I see it right now - it is more that Annotable will completly vanish soon. This is interesting to me. Chris Lattner schrieb: > On Fri, 24 Feb 2006, Jakob Praher wrote: > >> When translating a complex c