search for: builtin_func

Displaying 1 result from an estimated 1 matches for "builtin_func".

2007 Sep 12
2
[LLVMdev] Methodology for interfacing LLVM JITed code with C++
...llvm::Module is fairly straightforward, the difficulty, however, comes in generating the appropriate LLVM code to call into the C++ code. We see two main issues, name mangling and virtual functions. For example, lets say this scripting language contains a function foo: void foo() { int x = builtin_func(); } We would like for builtin_func() to generate code that calls a C++ function. One option we see for implementing this is to write C++ code that contains stub functions, such as: extern "C" int call_builtin_func() { return SomeCXXFunction(); } or for something with method call...