[llvm-dev] How to write a simple MachineFunctionPass

Mehdi Amini via llvm-dev llvm-dev at lists.llvm.org
Mon Feb 29 23:36:22 PST 2016


> On Feb 29, 2016, at 11:26 PM, 慕冬亮 via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> First you should learn how to write a pass and then a MachineFunctionPass.
> 
> From LLVM website, you can refer to http://llvm.org/docs/WritingAnLLVMPass.html <http://llvm.org/docs/WritingAnLLVMPass.html>
> 
> And for outside pass, you can refer to http://adriansampson.net/blog/llvm.html <http://adriansampson.net/blog/llvm.html>
> It's a great article.
> And the author put the source code on Github <https://github.com/sampsyo/llvm-pass-skeleton>.

See also from the last Dev Meeting: http://llvm.org/devmtg/2015-10/#tutorial1 (slides and video)
Github: https://github.com/quarkslab/llvm-dev-meeting-tutorial-2015

-- 
Mehdi


> 
> 2016-03-01 14:36 GMT+08:00 Balasaheb Dabhade via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>>:
> Hello everyone,
> 
> I have written simple LLVM passes, but I cannot able to write a MachineFunctionPass pass. 
> I am following the steps form the following link but it is not working:
> http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/ <http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/>
> 
> Please share the sample MachineFunctionPass code or steps to follow to write MachineFunctionPass.
> 
> Thanks,
> Bala
> -- 
> Thanks,
> Bala
> IIITA Allahabad
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
> 
> 
> 
> 
> -- 
> My best regards to you.
> 
>      No System Is Safe!
>      mudongliang
> _______________________________________________
> 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/20160229/fefcbd7b/attachment.html>


More information about the llvm-dev mailing list