search for: clang_parsetranslateunit

Displaying 2 results from an estimated 2 matches for "clang_parsetranslateunit".

2019 Mar 08
2
Query about JIT
...achieve the same functionality in LLVM is to use clag/libclang to convert the C source to LLVM IR, load this IR into the the JIT context and (skipping some steps I'm yet to figure out) get the desired function pointer. Is this approach the right one? One issue I foresee is that libclang's clang_parseTranslateUnit() function expects the C code to be from a file (although the file can be in-memory), whereas in my case the C code needs to be picked up from a char buffer - necessitating fmemopen(), etc. Thanks for your assistance. Regards, Rajesh Jayaprakash (https://github.com/shikantaza/plisp) -------------...
2019 Mar 12
2
Query about JIT
...is to use clag/libclang to convert > the C source to LLVM IR, load this IR into the the JIT context and > (skipping some steps I'm yet to figure out) get the desired function > pointer. > > > > Is this approach the right one? One issue I foresee is that libclang's > clang_parseTranslateUnit() function expects the C code to be from a file > (although the file can be in-memory), whereas in my case the C code needs > to be picked up from a char buffer - necessitating fmemopen(), etc. > > > > Thanks for your assistance. > > > > Regards, > Rajesh Jayaprakas...