[llvm-commits] gc-4-integration.patch [4 of 6]

Gordon Henriksen gordonhenriksen at mac.com
Mon Sep 3 23:36:17 PDT 2007


• gc-4-integration.patch (+113, -17 lines)
In this patch, Collector winds its tendrils throughout the compiler.  
Overhead should be minimal when disabled.

I would particularly appreciate any feedback on this interface.

The primary item of concern to me is that the desired collector is  
exposed to the system using a global. I haven't decided on a better  
approach. In the meantime, it works and is simple.

As a less concrete concern, the interaction between TargetMachine et  
al. and Collector is of some concern. Collector and TargetMachine  
have no way of sniffing each others' capabilities and requirements.  
So llc -march=c -gc=ocaml with silently do the wrong thing; likewise  
the JIT, object writers, and MSIL backend.

Finally, the -gc option is mandatory if collector intrinsics are  
used. This is somewhat sensible since there is no default collector  
runtime (excluding the MSIL target), but I'd rather stuff any  
necessary information inside the LLVM representation somehow so that  
the .bc/.ll remain self-contained.

— Gordon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070904/90ff7381/attachment.html>


More information about the llvm-commits mailing list