[llvm-dev] Parse LLVM IR using LLVM C API

Mahdi Mohammadi via llvm-dev llvm-dev at lists.llvm.org
Fri Dec 8 07:53:54 PST 2017


Hi,

I'm writing a compiler and I am thinking of mixing LLVM IR inside the
source code I'm compiling. So user can write normal code and write some
functions using LLVM IR.

Is it possible to use LLVM C API to parse those sections of the source code
and convert them into `LLVMValueRef`s pointing to parsed functions?

Thanks,
Mahdi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171208/bb837e18/attachment.html>


More information about the llvm-dev mailing list