Displaying 2 results from an estimated 2 matches for "targetcollector".
2007 Aug 31
3
[LLVMdev] PATCH: Registry template
...wrote a collector registry. I haven't
converted anything else to use it, though. Still, it's orthogonal and
has become stable in my usage, so I thought I'd submit it in advance.
To get my collector registry going, all I needed was 5 lines:
// GCRegistry.h
typedef Registry<TargetCollector> CollectorRegistry;
// GCRegistry.cpp
template<> CollectorRegistry::node *CollectorRegistry::Head = 0;
template<> CollectorRegistry::node *CollectorRegistry::Tail = 0;
template<> CollectorRegistry::listener
*CollectorRegistry::ListenerHead = 0;
template<>...
2007 Aug 28
0
[LLVMdev] RFC: Garbage collection infrastructure
...upport labels.
This obviously needs to be fixed; the collector needs to be turned on
and off by a policy object. I'm not sure where best to hang that
object off of, though.
1. Attach it to Target/Subtarget?
2. Attach it to Function, like the calling convention?
3. Attach a whole-new TargetCollector (TargetRuntime?) to the Module?
#1 is simplest, but I think wrong. #2 seems best to me. It would let
the inliner merge bare code with managed code, or vice versa, but
avoids the risk of silliness like inlining Java into Ocaml.
Opinions?
Once a decision is made on that, I'll resurrect th...