Passing it by reference was an artifact of an earlier version of the TargetFrontendConfig code, but it's no longer needed, as TargetFrontendConfig is now a Copy type.
This crate provides a straightforward way to create a
Cranelift IR function and fill it with
instructions translated from another language. It contains an SSA construction
module that provides convenient methods for translating non-SSA variables into
SSA Cranelift IR values via use_var and def_var calls.