search for: llvm_gc_

Displaying 6 results from an estimated 6 matches for "llvm_gc_".

Did you mean: llvm_gcc
2008 Jul 26
2
[LLVMdev] CollectorRegistry
....) { /* my allocator */ } void collect() { /* ... */ } // etc. }; but actually allocate, collect, etc. aren't supposed to be there, but in some separate structure that is accessed by both my llvm::Collector subclass (or rather, the assembly generated in the lowering passes) and llvm_gc_*? If that is the case, then I agree, it's a poor name -- at least it got me confused. :-P It's hard to come up with good alternatives, though. Hmm. I looked a bit at the ShadowStackCollector class, and suddenly it makes much more sense. But I fail to find any implementations of llvm_gc_al...
2008 Jul 26
0
[LLVMdev] CollectorRegistry
...collect() { /* ... */ } > // etc. > }; > > but actually allocate, collect, etc. aren't supposed to be there, > but in some separate structure that is accessed by both my > llvm::Collector subclass (or rather, the assembly generated in the > lowering passes) and llvm_gc_*? Yes. > If that is the case, then I agree, it's a poor name -- at least it > got me confused. :-P It's hard to come up with good alternatives, > though. Hmm. > > I looked a bit at the ShadowStackCollector class, and suddenly it > makes much more sense. But I fail...
2008 Jul 26
2
[LLVMdev] CollectorRegistry
2008/7/24 Gordon Henriksen <gordonhenriksen at me.com>: >> OK, so for instance if I wanted to be able to use the GC from a C >> frontend (presumably by using llvm_gc_allocate?), do the C functions >> need this attribute as well? > > Yes. I forgot I still needed an answer to my original question. :-P So, I have to implement llvm_gc_initialize, llvm_gc_allocate, and llvm_gc_collect (llvm_cg_walk_gcroots is provided by the Collector framework, right?)...
2008 Jul 26
0
[LLVMdev] CollectorRegistry
On Jul 26, 2008, at 10:32, Simon Ask Ulsnes wrote: > I forgot I still needed an answer to my original question. :-P > > So, I have to implement llvm_gc_initialize, llvm_gc_allocate, and > llvm_gc_collect Yes. Your implementation of the llvm_gc_* functions should be compiled into a library and linked with your executable. > (llvm_cg_walk_gcroots is provided by the Collector framework, right?) An implementation of llvm_cg_walk_gcroots co...
2008 Jul 26
1
[LLVMdev] CollectorRegistry
...void collect() { /* ... */ } > // etc. > }; > > but actually allocate, collect, etc. aren't supposed to be there, but in > some separate structure that is accessed by both my llvm::Collector subclass > (or rather, the assembly generated in the lowering passes) and llvm_gc_*? > > Yes. > > If that is the case, then I agree, it's a poor name -- at least it got me > confused. :-P It's hard to come up with good alternatives, though. Hmm. > > I looked a bit at the ShadowStackCollector class, and suddenly it makes much > more sense. But I fai...
2010 Aug 22
1
[LLVMdev] How start with LLVM garbage collector?
LLVM has GC possibility (llvm_gc_allocate). What compiler uses it? I try ldc D compiler but it not uses LLVM garbage collection but own in Tango library. -- View this message in context: http://old.nabble.com/How-start-with-LLVM-garbage-collector--tp29505874p29505874.html Sent from the LLVM - Dev mailing list archive at Nabble.com...