[llvm-dev] Cloning MachineFunctions
Owen Rodley via llvm-dev
llvm-dev at lists.llvm.org
Wed Aug 7 23:44:50 PDT 2019
Right, this would work, but I think it would just be the first step. We'd
still need to copy all of the blocks, instructions, etc.
On Wed, 7 Aug 2019 at 00:27, Lorenzo Casalino <lorenzo.casalino93 at gmail.com>
> Hi Owen,
> Looking to the API, I think MachineFunction cloning is something not
> taken into consideration (e.g.,
> copy-construction is forbidden).
> Maybe, you could achieve your goal by building a new MachineFunction
> with the provided constructor,
> extracting the parameters from the copied MachineFunction, and using the
> and MachineFunctionProperties::set() to copy the properties.
> Does it work for you? Or did I miss some particular?
> Concerning the utility of the cloning function, I do not see it, except
> for specific applications. But this
> is my personal opinion; someone else with more experience may properly
> address your question.
> -- Lorenzo
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev