• 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

_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to