[llvm-dev] Is there a python binding, or any other script binding, that has access to individual instructions?

Quentin Neill via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 16 08:50:37 PST 2018


-----Original Message-----
From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Yuri via llvm-dev
Sent: Monday, January 01, 2018 12:27 AM
To: llvm-dev at lists.llvm.org
Subject: [llvm-dev] Is there a python binding, or any other script binding, that has access to individual instructions?

There is llvmlite http://llvmlite.readthedocs.io/en/latest/ , but it doesn't seem to support reading individual instructions, based on these docs.


I was thinking to make a simple code analysis tool to, for example, find all system calls that have unchecked return codes, but I can't find a binding for any scripting language. And I am averse to writing this in C++.


Thanks,

Yuri

______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

Hi Yuri,

There is a python interface to LLDB which builds against LLVM
http://lldb.llvm.org/python-reference.html

I'm not that familiar with the internals but it might be a good starting point.





More information about the llvm-dev mailing list