Displaying 12 results from an estimated 12 matches for "mygc".
Did you mean:
mydc
2008 Jul 23
2
[LLVMdev] CollectorRegistry
Hey,
I am a bit confused about the CollectorRegistry.
I am attempting to write a garbage collector for LLVM, and the tiny
example in the docs at
http://llvm.org/releases/2.3/docs/GarbageCollection.html gives this
line:
CollectorRegistry::Add<MyCollector> X("mygc", "My bespoke garbage
collector.");
My question is now: Am I supposed to instantiate my collector
manually, and tell LLVM about it, or can the Registry instantiate it,
and it that case, how to go about that? I haven't been able to deduce
a way to get a pointer to my collector fr...
2011 Jun 20
1
Problem getting Samba fully working
...y.
However, I cannot seem to be able to ssh into the box with a Windows
account. The error I get is in log.wb-MYDOMAIN:
[2011/06/21 07:07:29, 1]
rpc_client/cli_pipe.c:949(cli_pipe_validate_current_pdu)
cli_pipe_validate_current_pdu: RPC fault code
DCERPC_FAULT_ACCESS_DENIED received from host MYGC.my.domain.name!
[2011/06/21 07:07:31, 1]
rpc_client/cli_pipe.c:949(cli_pipe_validate_current_pdu)
cli_pipe_validate_current_pdu: RPC fault code
DCERPC_FAULT_ACCESS_DENIED received from host MYGC.my.domain.name!
[2011/06/21 07:10:01, 1]
rpc_client/cli_pipe.c:949(cli_pipe_validate_current_pdu)...
2008 Jul 23
0
[LLVMdev] CollectorRegistry
...2008-07-23, at 08:58, Simon Ask Ulsnes wrote:
> I am attempting to write a garbage collector for LLVM, and the tiny
> example in the docs at http://llvm.org/releases/2.3/docs/GarbageCollection.html
> gives this line:
>
> CollectorRegistry::Add<MyCollector>
> X("mygc", "My bespoke garbage collector.");
>
> My question is now: Am I supposed to instantiate my collector
> manually, and tell LLVM about it, or can the Registry instantiate
> it, and it that case, how to go about that? I haven't been able to
> deduce a way to ge...
2008 Jul 23
3
[LLVMdev] CollectorRegistry
Thank you for that clarification.
> The framework decides which Collector to use based upon the 'gc'
> attribute of a function:
>
> define void @f() gc "mygc" {
> ...
> }
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?
And if so, can this attribute be applied to functions in bitcode
compiled by llvm-gcc, without modification...
2008 Aug 17
0
[LLVMdev] [!] Breaking changes to GC infrastructure
...with GCMetadataPrinterRegistry.
GCMetadataPrinterRegistry::Add<BespokeGCPrinter>
X("bespoke", "my bespoke");
3. Set the new UsesMetadata flag in your Collector subclass'
constructor so that the AsmWriter will look for your assembly printer:
MyGC::MyGC() {
...
UsesMetadata = true;
}
In addition, I took the breaking change as an opportunity to rename
some classes so that their role will hopefully be clearer. In
particular, Collector was confusing to implementors. Several thought
that this compile-time class w...
2008 Jul 24
2
[LLVMdev] CollectorRegistry
...be a viable alternative in the future?
If not, do you think it would require very significant changes to the
GCC frontend to make it annotate roots on the stack etc.?
I'm thinking along the lines of a command-line option a la:
llvm-gcc --emit-llvm -c myfile.c -o myfile.bc --garbage-collector=mygc
This could be a fun project, if the GCC code is not too hard to modify
like this. :-)
– Simon
2008 Jul 24
0
[LLVMdev] CollectorRegistry
On 2008-07-23, at 11:48, Simon Ask Ulsnes wrote:
> Thank you for that clarification.
>
>> The framework decides which Collector to use based upon the 'gc'
>> attribute of a function:
>>
>> define void @f() gc "mygc" {
>> ...
>> }
>
> 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.
> And if so, can this attribute be applied to functions in bitcode...
2011 Nov 01
2
[LLVMdev] Adding a custom GC safe point creation phase
...ntroversial.
>
> Seems a perfectly reasonable patch on its own merits.
>
> I would be curious what your findCustomSafePoints implementation looks
> like. Perhaps it's possible to extract some of it into the framework.
>
The code for my findCustomSafePoints is like this:
void MyGC::findCustomSafePoints(GCFunctionInfo& FI, MachineFunction &MF) {
for (MachineFunction::iterator BBI = MF.begin(),
BBE = MF.end(); BBI != BBE; ++BBI) {
for (MachineBasicBlock::iterator MI = BBI->begin(),
ME = BBI-...
2011 Nov 01
0
[LLVMdev] Adding a custom GC safe point creation phase
...>
> Seems a perfectly reasonable patch on its own merits.
>
> I would be curious what your findCustomSafePoints implementation looks like. Perhaps it's possible to extract some of it into the framework.
>
> The code for my findCustomSafePoints is like this:
>
> void MyGC::findCustomSafePoints(GCFunctionInfo& FI, MachineFunction &MF) {
> for (MachineFunction::iterator BBI = MF.begin(),
> BBE = MF.end(); BBI != BBE; ++BBI) {
> for (MachineBasicBlock::iterator MI = BBI->begin(),
>...
2008 Jul 24
0
[LLVMdev] CollectorRegistry
...nlikely.
> If not, do you think it would require very significant changes to
> the GCC frontend to make it annotate roots on the stack etc.?
>
> I'm thinking along the lines of a command-line option a la:
>
> llvm-gcc --emit-llvm -c myfile.c -o myfile.bc --garbage-collector=mygc
>
> This could be a fun project, if the GCC code is not too hard to
> modify like this. :-)
Indeed, llvm-gcc can emit llvm.gcroot, but the source program must
request it. Someone at Apple starting working with LLVM did this for
fun circa January, IIRC. Unclear whether it's usef...
2011 Nov 01
0
[LLVMdev] Adding a custom GC safe point creation phase
On 2011-10-31, at 17:21, Nicolas Geoffray wrote:
> Here's a patch to allow a GCStrategy to customize the places where it wants to insert safe points. I'm not sure who maintains the GC code today in LLVM (I'd be happy to take ownership, if needed).
>
> The patch just adds up a custom safepoints flag, similar to the way the GCStrategy can customize intrinsics lowering, or
2011 Oct 31
2
[LLVMdev] Adding a custom GC safe point creation phase
Hi Chris, Gordon,
Here's a patch to allow a GCStrategy to customize the places where it wants
to insert safe points. I'm not sure who maintains the GC code today in LLVM
(I'd be happy to take ownership, if needed).
The patch just adds up a custom safepoints flag, similar to the way the
GCStrategy can customize intrinsics lowering, or roots initialization. It
works pretty well, as