llvmpy / llvmpy

Originally a github fork of the llvm-py repository from http://www.mdevan.org/llvm-py/index.html updated to work with LLVM 3.x. Since then it has changed significantly with multiple sub-projects.

Home Page:www.llvmpy.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get float/double from ConstantFP?

writalnaie opened this issue · comments

commented

How to retrieve the double or float value from ConstantFP (actually Constant) class. It seems there is no interface for such requirement.

By the way, how do you generate the llvmpy/api.cpp and llvmpy/api/llvm/init.py? By manual or some automatical tool? I'm using llvmpy-0.11.2 which is the most recent version in the official website.

Thanks!