alexcrichton opened PR #2371 from parallelize-module to main:
This commit is a slight refactoring of the
Moduletrait and backend in
cranelift-object. The goal is to enable parallelization of compilation
when usingcranelift-object. Currently this is difficult because
ObjectModule::define_functionrequires&mut self. This instead
soups up thedefine_function_bytesinterface to handle relocations so
compilation can happen externally before defining it in aModule. This
also means thatdefine_functionis now a convenience wrapper around
define_function_bytes.
alexcrichton requested pchickey for a review on PR #2371.
alexcrichton updated PR #2371 from parallelize-module to main:
This commit is a slight refactoring of the
Moduletrait and backend in
cranelift-object. The goal is to enable parallelization of compilation
when usingcranelift-object. Currently this is difficult because
ObjectModule::define_functionrequires&mut self. This instead
soups up thedefine_function_bytesinterface to handle relocations so
compilation can happen externally before defining it in aModule. This
also means thatdefine_functionis now a convenience wrapper around
define_function_bytes.
bjorn3 submitted PR Review.
bjorn3 submitted PR Review.
bjorn3 created PR Review Comment:
I think the tuple should be a new type. I think
cranelift-simplejitalready has a type for this.
alexcrichton updated PR #2371 from parallelize-module to main:
This commit is a slight refactoring of the
Moduletrait and backend in
cranelift-object. The goal is to enable parallelization of compilation
when usingcranelift-object. Currently this is difficult because
ObjectModule::define_functionrequires&mut self. This instead
soups up thedefine_function_bytesinterface to handle relocations so
compilation can happen externally before defining it in aModule. This
also means thatdefine_functionis now a convenience wrapper around
define_function_bytes.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
Seems reasonable to me!
alexcrichton merged PR #2371.
Last updated: Dec 06 2025 at 06:05 UTC