[llvm-commits] [PATCH] [llvm-c] Add bindings for assembly parsing

Yiannis Tsiouris gtsiour at softlab.ntua.gr
Mon Mar 19 02:29:13 PDT 2012


On 03/19/12 02:55, Gregory Szorc wrote:
> ---
>   include/llvm-c/Assembly.h        |  150 ++++++++++++++++++++++++++++++++++++++
>   lib/AsmParser/CMakeLists.txt     |    1 +
>   lib/AsmParser/ParserBindings.cpp |  110 ++++++++++++++++++++++++++++
>   3 files changed, 261 insertions(+), 0 deletions(-)
>   create mode 100644 include/llvm-c/Assembly.h
>   create mode 100644 lib/AsmParser/ParserBindings.cpp
>
> I would add tests, but AFAICT there is no test framework set up for LLVM-C :(
>
> While I'm here, can anyone think of other Assembly-related APIs that
> are missing from LLVM-C?
>    
>
Hi Gregory,

Thanks for the patch! This was definately lacking! As far as another 
missing LLVM-C feature is concerned, it would be useful (for me at 
least) to be able to create an in-memory object file of an LLVM module. 
Personally, i 'd need this for an Erlang/HiPE backend that I'm 
developing; i could use that functionality to be able to load LLVM 
generated native code to the existing Virtual Machine.

Please correct if i'm wrong (or this functionality is useless for anyone 
else) but this is not possible in the current bindings. Maybe you could 
give me some implementation hints and I could write these bindings.

Kind regards,
Yiannis

-- 
Yiannis Tsiouris
Ph.D. student,
Software Engineering Laboratory,
National Technical University of Athens
WWW: http://www.softlab.ntua.gr/~gtsiour




More information about the llvm-commits mailing list