Hi,
This is basically what any pass driven through opt is doing. Have you tried
http://llvm.org/docs/WritingAnLLVMPass.html
<http://llvm.org/docs/WritingAnLLVMPass.html> ?
Best,
—
Mehdi
> On Jan 5, 2016, at 10:57 PM, Ansar K.A. via llvm-dev <llvm-dev at
lists.llvm.org> wrote:
>
> Hi,
>
> I want to delete instructions from LLVM IR code through programs. Then I
want to write the modified code to another .bc/.ll file. Any idea on how to do
this?
>
> Regards,
>
> Ansar K.A.
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20160105/74621e50/attachment.html>