[LLVMdev] (Possibly buggy?) doFinalization method behavior of FunctionPass

Owen Anderson resistor at mac.com
Wed May 6 09:45:27 PDT 2015


> On May 6, 2015, at 7:28 AM, John Criswell <jtcriswel at gmail.com> wrote:
> 
> My understanding is that doInitialization() and doFinalization() are designed specifically for modifying the LLVM IR (otherwise, why would a mutable reference to the Function be provided)?

As the person whose use case motivated added them, we definitely didn’t intend them to be used for modifying IR.

—Owen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150506/7fb97418/attachment.html>


More information about the llvm-dev mailing list