alexcrichton opened PR #2371 from parallelize-module
to main
:
This commit is a slight refactoring of the
Module
trait and backend in
cranelift-object
. The goal is to enable parallelization of compilation
when usingcranelift-object
. Currently this is difficult because
ObjectModule::define_function
requires&mut self
. This instead
soups up thedefine_function_bytes
interface to handle relocations so
compilation can happen externally before defining it in aModule
. This
also means thatdefine_function
is 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
Module
trait and backend in
cranelift-object
. The goal is to enable parallelization of compilation
when usingcranelift-object
. Currently this is difficult because
ObjectModule::define_function
requires&mut self
. This instead
soups up thedefine_function_bytes
interface to handle relocations so
compilation can happen externally before defining it in aModule
. This
also means thatdefine_function
is 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-simplejit
already has a type for this.
alexcrichton updated PR #2371 from parallelize-module
to main
:
This commit is a slight refactoring of the
Module
trait and backend in
cranelift-object
. The goal is to enable parallelization of compilation
when usingcranelift-object
. Currently this is difficult because
ObjectModule::define_function
requires&mut self
. This instead
soups up thedefine_function_bytes
interface to handle relocations so
compilation can happen externally before defining it in aModule
. This
also means thatdefine_function
is 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 23 2024 at 12:05 UTC