Displaying 2 results from an estimated 2 matches for "llvmgetvaluenam".
Did you mean:
llvmgetvaluename
2017 Apr 28
2
LLVMGetFirstFunction() / LLVMGetNextFunction( ) problem
...through the
function "matmul".
It never finds main().
50 first_func = LLVMGetFirstFunction(module);
(gdb) next
151 last_func = LLVMGetLastFunction(module);
(gdb)
154 for (func = first_func; func != last_func; func =
LLVMGetNextFunction(func)) {
(gdb)
155 func_name = LLVMGetValueName(func);
(gdb)
156 func_addr = LLVMGetFunctionAddress(engine, func_name);
(gdb) print func_name
$9 = 0x1efe180 "matmul"
(gdb) next
159 if (!func_addr) continue;
(gdb)
161 symbol_table_add(symbol_table, func_name, func_addr);
(gdb)
164 if ((size = mem_region_look...
2013 Sep 30
1
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
Attached is what I got thus far.
What I'm struggling with is proper integration in build system. What
is in there is just wild guesses from my side, both on autoconf and
cmake variants. It would be great if someone with proper knowledge of
the buildsystems could have a look. Also I'm not sure how to properly
handle compilation on msvc - clearly "-std=c11 -Wstrict-prototypes" is